File tree Expand file tree Collapse file tree
src/client/debugger/DebugClients Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -120,12 +120,14 @@ export class LocalDebugClient extends DebugClient {
120120 } ) ;
121121 this . pyProc . stderr . setEncoding ( "utf8" ) ;
122122 this . pyProc . stderr . on ( "data" , error => {
123- // We don't need to display the errors as stderr output is being captured by debugger
123+ // We generally don't need to display the errors as stderr output is being captured by debugger
124124 // and it gets sent out to the debug client
125125
126- // This is necessary so we read the stdout of the python process
126+ // Either way, we need some code in here so we read the stdout of the python process
127127 // Else it just keep building up (related to issue #203 and #52)
128- let x = 0 ;
128+ if ( this . debugServer && ! this . debugServer . IsRunning ) {
129+ return reject ( error ) ;
130+ }
129131 } ) ;
130132 this . pyProc . stdout . on ( "data" , d => {
131133 // This is necessary so we read the stdout of the python process
You can’t perform that action at this time.
0 commit comments