File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -213,4 +213,10 @@ differently based on whether the remote system is a POSIX or a Windows system.
213213You may need to experiment to find the correct escaping necessary for the command to be
214214sent to the debugger as you intended.
215215
216+ ### LogMessage
217+
218+ LogMessage will print a message in the debug console when breakpoint is hit. Expressions within {} are interpolated.
219+
220+ ![ LogMessage] ( images/logMessage.gif )
221+
216222## [ Issues] ( https://github.com/WebFreak001/code-debug )
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ class LogMessage {
5050 }
5151 }
5252 }
53- return null
53+ return undefined ;
5454 }
5555 }
5656
@@ -639,7 +639,6 @@ export class MI2 extends EventEmitter implements IBackend {
639639 commands += `\"print ${ m [ 1 ] } \" ` ;
640640 }
641641 }
642- commands += "\"continue\"" ;
643642 return this . sendCommand ( "break-commands " + bkptNum + " " + commands ) ;
644643 }
645644
@@ -696,7 +695,6 @@ export class MI2 extends EventEmitter implements IBackend {
696695 breakpoint . id = newBrk . id ;
697696 this . breakpoints . set ( newBrk , bkptNum ) ;
698697 this . logMessage . logMsgBrkList . push ( breakpoint ) ;
699-
700698 resolve ( [ true , newBrk ] ) ;
701699 } else {
702700 resolve ( [ false , undefined ] ) ;
You can’t perform that action at this time.
0 commit comments