File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,6 @@ export class CmsisDebugSession extends GDBDebugSession {
240240 await mi . sendTargetAsyncOn ( this . gdb ) ;
241241 await mi . sendTargetSelectRemote ( this . gdb , remote ) ;
242242 await mi . sendMonitorResetHalt ( this . gdb ) ;
243- await this . gdb . sendEnablePrettyPrint ( ) ;
244243 this . sendEvent ( new OutputEvent ( `Attached to debugger on port ${ port } ` ) ) ;
245244
246245 // Download image
@@ -251,6 +250,10 @@ export class CmsisDebugSession extends GDBDebugSession {
251250 this . gdbServer . off ( 'progress' , progressListener ) ;
252251 progressListener ( 100 ) ;
253252
253+ // Halt after image download
254+ await mi . sendMonitorResetHalt ( this . gdb ) ;
255+ await this . gdb . sendEnablePrettyPrint ( ) ;
256+
254257 if ( args . runToMain === true ) {
255258 await mi . sendBreakOnFunction ( this . gdb ) ;
256259 }
You can’t perform that action at this time.
0 commit comments