-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
Variable doesn't get printed through -exec in repl #907
Comments
i have the same problem, when u step in a function the repl doest update, u need for exemple type p test, it will say:-var-create: unable to create variable object, and then type -exec p test, the first command will update the repl i guess |
here some information: |
I saw that ticket, too. But I was wondering, why it works for me in vscode but not in nvim + the logs look quite different. |
I switched to gdb 14.1, this issue isn't relevant for me anymore. |
Debug adapter definition and debug configuration
Config based on vscode default with logging
Within vscode this config works and produces the expected result.
Debug adapter version
cpptools v1.14.4
Steps to Reproduce
This error is random, but with following minimal example I could reproduce the error at least every 2nd time. With a more complex example the error occurs all the time. When I reduce the complexity by removing catch2 the error doesn't occur.
It also uses a 3rd party gdb extension. (maybe some timing error?) Edit: this is optional
In vscode it works for me without error.
Now to reproduce:
git clone https://github.com/Fabian-programmer/oid_bug
g++ -o oid_bug oid_bug.cpp -ggdb -O0
-exec print test
in the dap repl console, which will returnNo symbol "test" in current context.
Expected Result
I don't know why I currently can't embed png's here.
But this is the expected result. It should display the variable test inside the open image debugger.
For the
-exec print test
this is the result from vscode:Actual Result
For the actual result the Open Image Debugger window stays blank with the last line in repl:
repl output for nvim dap
compared to working repl output from vscode
I hope it is ok, that I've just linked everyth. into this repository. Didn't want to clutter the ticket with these outputs.
The text was updated successfully, but these errors were encountered: