News for hackers. Stuff that matters.
Re:Debugging with GDB by Alekhine on Monday March 21, 2022 @12:14PM (#30755832)
Are there any easier to use C debuggers than GDB? All I really need to do is watch my variables change with each line.
Re:Debugging with GDB by greglaw99 on Tuesday March 22, 2022 @11:25PM (#30774547)
Visual Studio Code on Linux works really well and is increasingly popular, also a shout out for C-Lion. Eclipse is, umm, eclipsed by them both IMO.

My subjective opinion is that C-Lion is just a little bit more solid/complete, but Microsoft are investing heavily in VScode. It's great to see some serious competition by two well-resourced players working on this stuff.

Personally I'm always happiest with GDB tui. It's all the standard arguments of command-line vs GUI. When you know what you're doing CLI (with tab-complete) is just a faster way to accomplish the task, but when you're a noobie or an infrequent user the GUI wins because it's so much more discoverable.

Re:Debugging with GDB by j1elo on Monday March 21, 2022 @01:45PM (#30757329)
A nice UI on top of GDB might be all you need. I've used this with some success in the past: https://www.gdbgui.com/
Re:Debugging with GDB by mariusor on Monday March 21, 2022 @12:21PM (#30755937)
If you're on Windows you can use RemedyBG: https://remedybg.itch.io/remedybg
Re:Debugging with GDB by lsllc on Monday March 21, 2022 @02:47PM (#30758103)
Try GDB Dashboard, it makes gdb much easier to use:

https://github.com/cyrus-and/gdb-dashboard

There's also Voltron which works with both gdb and lldb (amongst others):

https://github.com/snare/voltron

Re:Debugging with GDB by zoomablemind on Monday March 21, 2022 @02:02PM (#30757529)
QtCreator has a very capable debug view. No need to have a Qt project, simply start a binary and step-in into it, or attach to a running process.

Most of IDEs have a similar capability to be able to use debug view without setting up a project.

Re:Debugging with GDB by amir734jj on Monday March 21, 2022 @12:20PM (#30755917)
You can use jetbrain clion an attach it to a binary. Or use even vscode.
Re:Debugging with GDB by pjmlp on Tuesday March 22, 2022 @04:00AM (#30763660)
Visual Studio, C++ Builder and XCode.

But if you really only need to watch variables any GUI frontend to gdb like QtCreator or DDD will do.

Re:Debugging with GDB by harry8 on Monday March 21, 2022 @07:07PM (#30760901)
Eclipse-cdt is a reasonable option for this.