Debugger watch expression vscode

1.2k Views Asked by At

I'm using the gdb debugger to debug c++ code. It works fine when I set breakpoints and view variables. A But I'm not able to Watch variables either in the watch column in the left or the debug console in the bottom.

As you can see in the images arr[q.front()] exists at the first break point. Still it shows not available and the debugger stops executing. Same when tried in the debug console. Is there only some kind of expressions which can be watched?

The first breakpoint on line 46 Program crashes when adding arr[q.front()] to Watch Program crashes when alternatively entering arr[q.front()] in the debug console

0

There are 0 best solutions below