Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAP hangs/fails to connect if previous debug session was ended by quitting FS-UAE #1

Open
dansalvato opened this issue Jun 23, 2023 · 1 comment

Comments

@dansalvato
Copy link

I'm on macOS using Neovim. To explain the issue, let me list a working and non-working scenario.

Working scenario:

  1. Start a debug session. Node and FS-UAE start up.
  2. End the session from the debugger by sending terminate(). FS-UAE and Node both quit.
  3. Start a new debug session. Node and FS-UAE start up and work as expected.

Another working scenario:

  1. Start a debug session. Node and FS-UAE start up.
  2. Force quit Node, and then quit FS-UAE normally.
  3. Start a new debug session. Node and FS-UAE start up and work as expected.

Non-working scenario:

  1. Start a debug session. Node and FS-UAE start up.
  2. End the session by quitting FS-UAE. FS-UAE and Node both quit.
  3. (Optional) Restart Neovim to ensure nothing stale is going on with the debugger.
  4. Start a new debug session. FS-UAE and Node start up, but FS-UAE hangs. A force quit is required on both FS-UAE and Node.
  5. After force quitting Node and FS-UAE, start another debug session. Node and FS-UAE start up and work as expected.

Basically, if the debug session is ended by quitting FS-UAE, then the next session is guaranteed to fail. It's very strange because I confirmed that the Node process also ends when quitting FS-UAE. Is there a difference between how the DAP handles FS-UAE quitting versus terminate() from the debugger?

@grahambates
Copy link
Owner

I'm pretty sure we had this exact bug on Bartman's vscode-amiga-debug extension. I'll sort it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants