|
@@ -142,6 +142,10 @@ void ScriptDebuggerRemote::debug(ScriptLanguage *p_script, bool p_can_continue,
|
|
|
|
|
|
ERR_FAIL_COND_MSG(!tcp_client->is_connected_to_host(), "Script Debugger failed to connect, but being used anyway.");
|
|
ERR_FAIL_COND_MSG(!tcp_client->is_connected_to_host(), "Script Debugger failed to connect, but being used anyway.");
|
|
|
|
|
|
|
|
+ if (allow_focus_steal_pid) {
|
|
|
|
+ OS::get_singleton()->enable_for_stealing_focus(allow_focus_steal_pid);
|
|
|
|
+ }
|
|
|
|
+
|
|
packet_peer_stream->put_var("debug_enter");
|
|
packet_peer_stream->put_var("debug_enter");
|
|
packet_peer_stream->put_var(2);
|
|
packet_peer_stream->put_var(2);
|
|
packet_peer_stream->put_var(p_can_continue);
|
|
packet_peer_stream->put_var(p_can_continue);
|
|
@@ -1231,6 +1235,10 @@ void ScriptDebuggerRemote::set_skip_breakpoints(bool p_skip_breakpoints) {
|
|
skip_breakpoints = p_skip_breakpoints;
|
|
skip_breakpoints = p_skip_breakpoints;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+void ScriptDebuggerRemote::set_allow_focus_steal_pid(OS::ProcessID p_pid) {
|
|
|
|
+ allow_focus_steal_pid = p_pid;
|
|
|
|
+}
|
|
|
|
+
|
|
ScriptDebuggerRemote::ResourceUsageFunc ScriptDebuggerRemote::resource_usage_func = NULL;
|
|
ScriptDebuggerRemote::ResourceUsageFunc ScriptDebuggerRemote::resource_usage_func = NULL;
|
|
|
|
|
|
ScriptDebuggerRemote::ScriptDebuggerRemote() :
|
|
ScriptDebuggerRemote::ScriptDebuggerRemote() :
|
|
@@ -1258,6 +1266,7 @@ ScriptDebuggerRemote::ScriptDebuggerRemote() :
|
|
warn_count(0),
|
|
warn_count(0),
|
|
last_msec(0),
|
|
last_msec(0),
|
|
msec_count(0),
|
|
msec_count(0),
|
|
|
|
+ allow_focus_steal_pid(0),
|
|
locking(false),
|
|
locking(false),
|
|
poll_every(0),
|
|
poll_every(0),
|
|
scene_tree(NULL) {
|
|
scene_tree(NULL) {
|