This repository was archived by the owner on Feb 1, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -515,6 +515,10 @@ function createCommandContext(inspector) {
515515 return new Proxy ( new RemoteObject ( result ) , createRemoteObjectProxyHandler ( inspector . client ) ) ;
516516 }
517517
518+ function handleBreakpointResolved ( { breakpointId, location } ) {
519+ knownBreakpoints . set ( breakpointId , location ) ;
520+ }
521+
518522 const ctx = {
519523 get help ( ) {
520524 const commands = [
@@ -574,7 +578,7 @@ function createCommandContext(inspector) {
574578 setBreakpoint ( script , line , condition , silent ) {
575579 function registerBreakpoint ( { breakpointId, actualLocation } ) {
576580 if ( actualLocation ) {
577- knownBreakpoints . set ( breakpointId , actualLocation ) ;
581+ handleBreakpointResolved ( { breakpointId, location : actualLocation } ) ;
578582 if ( ! silent ) return ctx . list ( 5 ) ;
579583 } else {
580584 print ( `Warning: script '${ script } ' was not loaded yet.` ) ;
@@ -786,7 +790,7 @@ function createCommandContext(inspector) {
786790 . then ( ( ) => repl . displayPrompt ( ) ) ;
787791 } ) ;
788792
789- // TODO: Debugger.on('breakpointResolved', ({ })
793+ Debugger . on ( 'breakpointResolved' , handleBreakpointResolved ) ;
790794
791795 Debugger . on ( 'scriptParsed' , ( { scriptId, url } ) => {
792796 if ( url ) {
You can’t perform that action at this time.
0 commit comments