DEV Community

mahesh_attarde
mahesh_attarde

Posted on

[GDB-Quick] Using Eclipse Standalone debugger GUI

GDB is debugger that comes with basic functionality of doing everything command line. GDB-TUI provides basic Text UI for debugging source codes with minimum dependencies. At times, Window-GUI is much help to look at much information at snapshot, edit it, view it without explicitly typing all commands and shortcuts.
Here is how we can use eclipse-cdt as standalone debugger.
No need to create projects!

Download Eclipse-CDT package
Unzip Eclipse-CDT.zip
switch to unzipped folder eclipse\plugins\org.eclipse.cdt.debug.application_*\s
cripts
/bin/sh ./cdtdebug.sh

This will install debugger into your $HOME/cdtdebugger/ area

Now Connect to local process with GUI prompt. No need to list process on terminal then type process id!
$HOME/cdtdebugger/cdtdebug.sh -a

Connect Remote Process
$HOME/cdtdebugger/cdtdebug.sh -r address:port

Debug binary
$HOME/cdtdebugger/cdtdebug.sh -e executable

Read More at [https://wiki.eclipse.org/CDT/StandaloneDebugger]
[https://www.infoq.com/presentations/best-practices-cdt-debugger/]
Enjoy!
HTH!

Top comments (0)