File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff 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 } ;
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments