-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
enable gdb reverse debugging #2130
Comments
You will want to make a request to the VSCode Protocol at their GitHub issue page at https://github.com/Microsoft/vscode-debugadapter-node/issues |
@jfg118 Does |
@WardenGnaw the VSCode Protocol supports the "Back" functionality. https://github.com/Microsoft/vscode-debugadapter-node/blob/master/protocol/src/debugProtocol.ts i.e. StepBack, ReverseContinue, etc. The capabilities need to specify supportsStepBack := true @pieandcakes gdb-mi it supports the reverse commands through specify -reverse argument to the normal step , next, commands, as well as setting the debug direction. |
During the start of GDB/LLDB. This will also need to run In order to run the commands, users will need to run |
The "target record-full" would be something that has to be manual as there doesn't seem to be a way to specify it from VS Code's UI Another hurdle will be that |
Perhaps a general option in the Debug Configuration to "Enable Reverse Debugging at startup" with a note that it Requires Reverse GDB. This would allow the user to have different Debug Configurations, some with reverse debugging enabled and others without. |
There are too many options for reverse debugging in gdb alone: https://sourceware.org/gdb/onlinedocs/gdb/Process-Record-and-Replay.html
This is indeed a fundamental problem. https://microsoft.github.io/debug-adapter-protocol/specification#Requests_Launch comes after initialization. But if you try to execute a reverse step without checking it will simply fail:
Btw when manually running gdb commands like finish or step the UI doesn't get notified of the new $pc. |
Hi, any status update ? |
Still in review. |
Checking back, any update on this? |
For anyone who wants reverse-debugging in VsCode now: Entering this in debug console worked for me: |
|
Type: Debugger
Hookup the reverse debugging commands for gdb to the VSCode Debugger Protocol.
i.e. reverse-next, reverse-step, reverse-continue, etc.
The text was updated successfully, but these errors were encountered: