You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
git clone https://github.com/OpenImageDebugger/OpenImageDebugger.git
cd OpenImageDebugger
git submodule init
git submodule update
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=../bin
make -j4
make install
GDB integration: Edit the file ~/.gdbinit (create it if it doesn't exist) and append the following line:
source /path/to/OpenImageDebugger/oid.py
Start the debugging with the provided configuration
if openimagedebugger is enabled, the variable should be selectable +visible in the ui. But it is also possible to execute -exec print test in the dap repl console, which will return No 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:
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (10239) ->(gdb)\n"},"seq":1262}
1: (10239) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (10239) 1122: elapsed time 0\n"},"seq":1264}
1: (10239) 1122: elapsed time 0
--> R (variables-22): {"type":"response","request_seq":22,"success":true,"command":"variables","body":{"variables":[{"name":"test","value":"{...}","type":"cv::Mat","evaluateName":"test","variablesReference":1005}]},"seq":1266}
Actual Result
For the actual result the Open Image Debugger window stays blank with the last line in repl:
[OpenImageDebugger] Error: Could not plot variable
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"No symbol "test" in current context.\n"},"seq":100}
No symbol "test" in current context.
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
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: