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

"cannot find session" #91

Closed
maziac opened this issue May 23, 2022 · 2 comments
Closed

"cannot find session" #91

maziac opened this issue May 23, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@maziac
Copy link
Owner

maziac commented May 23, 2022

DeZog 2.7.0 (also on develop branch).

  1. Start a project, e.g. z80-sampleproject
  2. Change something in launch.json.
  3. Re-start project.4.

Result:
Bildschirmfoto 2022-05-23 um 13 15 15

This does not happen on normal restart.
The launch.json need to be changed. This causes 'resolveDebugConfiguration' to be called.
Probably this has to do with the problem.

Could be a vscode problem, see here: microsoft/vscode#136200

Workaround:
On next start of the debugger everything is working fine.

@maziac maziac added the bug Something isn't working label May 23, 2022
@maziac
Copy link
Owner Author

maziac commented May 23, 2022

Some more investigations:
It seems that without changing the launch.json the debug adapter gets a disconnectRequest and then a launchRequest (note: supportsRestartRequest is false).
In case the launch.json is changed it does not get the disconnectRequest.

@maziac
Copy link
Owner Author

maziac commented Jun 2, 2022

With 3.0 this was fixed. But also the behavior is different now:
If a restart is done and the launch.json was changed that the user is asked if he would like to terminate the current session.
If yes, the session is terminated and the sequence ends here.
I.e. the user has to press 'start' once again.
Note: this only happens if the launch.json was changed. If it is untouched a restart really restarts the debug session.

@maziac maziac closed this as completed Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant