eclipse-theia/theia

Firefox debugger stays in 'debug' state if debugged window is closed or attach is cancelled

Open

#7,512 opened on Apr 7, 2020

View on GitHub
 (7 comments) (0 reactions) (0 assignees)TypeScript (18,676 stars) (2,478 forks)batch import
bugdebughelp wanted

Description

Description

When I close debugged Firefox window, debugging session in Theia remains open until Theia reload.

Reproduction Steps

  1. Install Firefox Debugger extension, I did it from .vsix I had (v2.7.0)
  2. Start debug using either launch or attach
  3. Close debugged window or press cancel in attach window
  4. See that bottom pane is still orange and debug view shows there's a session running If you stop session using button in Theia debugger disconnects from Firefox correctly. VS Code debug session with v2.7.1 of extension ends successfully when closing the browser. It doesn't look like the bug was fixed, code stayed almost the same: https://github.com/firefox-devtools/vscode-firefox-debug/compare/2.7.0...2.7.1 . Chrome Debugger works just fine and stops the session after Chrome is stopped.

OS and Theia version: Ubuntu 19.10, Theia 1.0.0

Diagnostics: Hmm, this may be related:

Error: the debug session connection is disposed, id: 99f3c7c4-6450-4881-87a7-d33c486a9f99 debug-session-connection.ts:129:18

Contributor guide

Firefox debugger stays in 'debug' state if debugged window is closed or attach is cancelled · eclipse-theia/theia#7512 | Good First Issue