| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Wrap vm.dispose() in a try/catch to ignore VMDisconnectedException when the VM has already disconnected (e.g. process terminated) to avoid spurious errors during detach. Reorder calls in DisconnectRequestHandler to invoke terminate() before detach() when terminateDebuggee is true and the session is not attached, ensuring the debuggee is terminated prior to detaching.
Wrap debugSession.terminate() in a try/finally so debugSession.detach() is always invoked when terminateDebuggee is true and the session is not attached. This ensures the session is detached even if terminate() throws, avoiding potential dangling sessions. Other detach logic is unchanged.
|
José Costa (@zepedrocosta) thank you for your contribute! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
After the changes in #620 the stop button wasn't working properly. The action wasn't executed and the process just kept running.
The terminate() now is called before detach() when terminating the debuggee, ensuring proper shutdown sequence.