Skip to content

Commit

Permalink
fix: removes code execution indicator when process is terminated (#368)
Browse files Browse the repository at this point in the history
If the debugger is standing on a line and DBGp connection is interrupted (for example, php process terminated) the thread will go away, but the execution indicator will stay. Signaling a continued event before Thread exit solves this.

Co-authored-by: Damjan Cvetko <damjan.cvetko@monotek.net>
Co-authored-by: Felix Becker <felix.b@outlook.com>
  • Loading branch information
3 people authored Dec 21, 2020
1 parent 22819aa commit bdfebbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/phpDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ class PhpDebugSession extends vscode.DebugSession {
)
)
}
this.sendEvent(new vscode.ContinuedEvent(connection.id, false))
this.sendEvent(new vscode.ThreadEvent('exited', connection.id))
connection.close()
this._connections.delete(connection.id)
Expand Down

0 comments on commit bdfebbe

Please sign in to comment.