Skip to content

Commit f5fcdd9

Browse files
author
Chris K
committed
Fix for DFL-3282, Can't inspect when being stopped after re-enabling services.
1 parent 8212c29 commit f5fcdd9

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

src/ecma-debugger/runtimes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ cls.EcmascriptDebugger["6.0"].Runtimes = function(service_version)
184184
__selected_runtime_id = '';
185185
__next_runtime_id_to_select = '';
186186
__selected_script = '';
187+
current_threads = {};
187188
updateRuntimeViews();
188189
}
189190
};

src/ecma-debugger/stop_at.js

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,9 +544,29 @@ cls.EcmascriptDebugger["6.0"].StopAt = function()
544544
self.__continue('run');
545545
}
546546

547-
}
547+
};
548+
549+
this._on_profile_disabled = function(msg)
550+
{
551+
if (msg.profile == window.app.profiles.DEFAULT)
552+
{
553+
this._clear_stop_at_error();
554+
callstack = [];
555+
__script_ids_in_callstack = [];
556+
window.views.js_source.clearLinePointer();
557+
window.views.callstack.clearView();
558+
window.views.inspection.clearView();
559+
window.messages.post('frame-selected', {frame_index: -1});
560+
window.messages.post('thread-continue-event', {stop_at: stopAt});
561+
__controls_enabled = false;
562+
__is_stopped = false;
563+
window.toolbars.js_source.disableButtons('continue');
564+
window.messages.post('host-state', {state: 'ready'});
565+
}
566+
};
548567

549568
messages.addListener('runtime-destroyed', onRuntimeDestroyed);
569+
messages.addListener('profile-disabled', this._on_profile_disabled.bind(this));
550570

551571
var onActiveInspectionType = function(msg)
552572
{

0 commit comments

Comments
 (0)