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!

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay