#966 GDB support

open
nobody
None
5
2012-11-13
2008-02-05
Jan Stuckens
No

It would be great if npp got support for the GNU debugger, linker and compilers.

Linking and compiling already works by using the nppexec commmand and redirecting to the console. It would be good though if npp had some build-in options or docs describing this. The way I set things up now is with a script
compile_and_run:
gf.bat $(FULL_CURRENT_PATH) $(CURRENT_DIRECTORY)\$(NAME_PART)

batch file looks like:

echo off
IF EXIST %2.exe del %2.exe
gfortran -g %1 -o %2
IF EXIST %2.exe %2.exe

Combined with "save on execute" on and "OEM console output" to "off" this works fairly well

Interfacing with GDB is harder, currently I use a workaround that first compiles with debug option and then calls the cygwin insight debugger. My hopes are to directly interface GDB with npp and e.g. use the npp bookmarks (it they can be saved) as breakpoints

Anyway, npp is already great.

Discussion