Unable to get C++ gdb pretty printing going
Posted: Tue Jan 28, 2014 6:04 pm
I have installed Codelite 5.4 with MinGW/TDD compiler, debugger, etc. as part of the one installation file, on a 64 bit Windows 7 machine. All is well. My test program is a C++ command line program with some containers library objects. It compiles and debugs normally.
I followed the steps at:
http://codelite.org/LiteEditor/GdbPrettyPrinting
(last update 2013-10-26) exactly, including downloading the specified new version of gdb (I am not sure of its version, from: http://sourceforge.net/projects/gdbming ... p/download ), and copying its three directories directories to C:\GDB-7.4.5\ to match the path in the screenshot of the Debugger Settings dialogue box. I followed all the instructions on that page, including installing Python 2.7.5 in the directory its installer suggested: C:\Python27\ .
When I try to debug a program, some things flash and nothing happens. I think the application DOS box appears briefly. I see no error messages. I rebooted, but the same thing happened. I noticed that the debugger path settings and the selection to enable pretty printing were not retained after I closed and opened Codelite. I can't find a log of what went wrong.
In Settings > Debugger Settings > GNU gdb debugger > Misc I set the flags for logging and showing the terminal, but I am not sure where to look for such logs.
I triple checked that I followed all the instructions. Maybe these instructions worked for a previous version of Codelite, gcc, gdb etc. Does the Python installation add something to the path env var? How does this gdb know where to run the Python interpreter?
Thanks for Codelite!
- Robin
I followed the steps at:
http://codelite.org/LiteEditor/GdbPrettyPrinting
(last update 2013-10-26) exactly, including downloading the specified new version of gdb (I am not sure of its version, from: http://sourceforge.net/projects/gdbming ... p/download ), and copying its three directories directories to C:\GDB-7.4.5\ to match the path in the screenshot of the Debugger Settings dialogue box. I followed all the instructions on that page, including installing Python 2.7.5 in the directory its installer suggested: C:\Python27\ .
When I try to debug a program, some things flash and nothing happens. I think the application DOS box appears briefly. I see no error messages. I rebooted, but the same thing happened. I noticed that the debugger path settings and the selection to enable pretty printing were not retained after I closed and opened Codelite. I can't find a log of what went wrong.
In Settings > Debugger Settings > GNU gdb debugger > Misc I set the flags for logging and showing the terminal, but I am not sure where to look for such logs.
I triple checked that I followed all the instructions. Maybe these instructions worked for a previous version of Codelite, gcc, gdb etc. Does the Python installation add something to the path env var? How does this gdb know where to run the Python interpreter?
Thanks for Codelite!
- Robin