@@ -52,6 +52,7 @@ export class MI2DebugSession extends DebugSession {
52
52
this . miDebugger . on ( "breakpoint" , this . handleBreakpoint . bind ( this ) ) ;
53
53
this . miDebugger . on ( "step-end" , this . handleBreak . bind ( this ) ) ;
54
54
this . miDebugger . on ( "step-out-end" , this . handleBreak . bind ( this ) ) ;
55
+ this . miDebugger . on ( "step-other" , this . handleBreak . bind ( this ) ) ;
55
56
this . miDebugger . on ( "signal-stop" , this . handlePause . bind ( this ) ) ;
56
57
this . miDebugger . on ( "thread-created" , this . threadCreatedEvent . bind ( this ) ) ;
57
58
this . miDebugger . on ( "thread-exited" , this . threadExitedEvent . bind ( this ) ) ;
@@ -116,9 +117,9 @@ export class MI2DebugSession extends DebugSession {
116
117
this . sendEvent ( event ) ;
117
118
}
118
119
119
- protected handleBreak ( info : MINode ) {
120
- const event = new StoppedEvent ( "step" , parseInt ( info . record ( "thread-id" ) ) ) ;
121
- ( event as DebugProtocol . StoppedEvent ) . body . allThreadsStopped = info . record ( "stopped-threads" ) == "all" ;
120
+ protected handleBreak ( info ? : MINode ) {
121
+ const event = new StoppedEvent ( "step" , info ? parseInt ( info . record ( "thread-id" ) ) : 1 ) ;
122
+ ( event as DebugProtocol . StoppedEvent ) . body . allThreadsStopped = info ? info . record ( "stopped-threads" ) == "all" : true ;
122
123
this . sendEvent ( event ) ;
123
124
}
124
125
@@ -657,16 +658,16 @@ export class MI2DebugSession extends DebugSession {
657
658
protected gotoTargetsRequest ( response : DebugProtocol . GotoTargetsResponse , args : DebugProtocol . GotoTargetsArguments ) : void {
658
659
this . miDebugger . goto ( args . source . path , args . line ) . then ( done => {
659
660
response . body = {
660
- targets : [ {
661
- id : 1 ,
662
- label : args . source . name ,
661
+ targets : [ {
662
+ id : 1 ,
663
+ label : args . source . name ,
663
664
column : args . column ,
664
665
line : args . line
665
666
} ]
666
667
} ;
667
668
this . sendResponse ( response ) ;
668
669
} , msg => {
669
- this . sendErrorResponse ( response , 6 , `Could not jump: ${ msg } ` ) ;
670
+ this . sendErrorResponse ( response , 16 , `Could not jump: ${ msg } ` ) ;
670
671
} ) ;
671
672
}
672
673
0 commit comments