Closed umarnasir1 closed 2 years ago
The issue is resolved using g++ -g -std=c++14 filename.cpp -o filename
from the command prompt to create the executable file to debug. I was using g++ -g -Wall -std=c++14 filename.cpp -o filename
due to which I was unable to debug.
I have an issue debugging a program in C++ on Atom text editor with the dbg-gdb package on MacOs. The debugger does not halt at the breakpoint
I have GDB debugger packages atom-gdb-debugger 0.2.2, dbg 1.6.3 and dbg-gdb 1.7.8.
I have compiled the file using
g++ -g -Wall -std=c++14 003_1.cpp -o 003_1
from the command prompt to create the executable file to debug as suggested in [(https://github.com/31i73/atom-dbg-gdb/issues/20)] but still its not working for me.When I set the breakpoint and then debug the file (F5), the debugger does not halt at the breakpoint and I get the following result (screenshot).
I dont see any variables in the variable window or call stack when I debug.
Additionally, the play, pause and others dont work .. I just can press the stop button to end debugging.
If I run without the breakpoint using 'Compile and Debug' option, the program runs as usual and displays results. However, when I toggle the breakpoint instead, the behaviour is the one already mentioned.
Screenshot of the pogram is attached.
macOS Catalina (Version 10.15.7)
Kindly guide if something is missing.