File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ export class MI2 extends EventEmitter implements IBackend {
397
397
}
398
398
else if ( parseInt ( match ) !== 0 ) {
399
399
location += '-t -i ' + parseInt ( match ) + ' ' ;
400
- }
400
+ }
401
401
}
402
402
}
403
403
@@ -411,6 +411,10 @@ export class MI2 extends EventEmitter implements IBackend {
411
411
this . sendCommand ( `break-insert ${ location } ` ) . then ( ( result ) => {
412
412
if ( result . resultRecords . resultClass === 'done' ) {
413
413
const bkptNum = parseInt ( result . result ( 'bkpt.number' ) ) ;
414
+ if ( breakpoint . line !== undefined ) {
415
+ const line = result . result ( 'bkpt.line' ) ;
416
+ breakpoint . line = line ? parseInt ( line ) : breakpoint . line ;
417
+ }
414
418
breakpoint . number = bkptNum ;
415
419
416
420
if ( breakpoint . condition ) {
You can’t perform that action at this time.
0 commit comments