rohanrhu / gdb-frontend

☕ GDBFrontend is an easy, flexible and extensible gui debugger. Try it on https://debugme.dev
https://oguzhaneroglu.com/projects/gdb-frontend/
GNU General Public License v3.0
2.82k stars 101 forks source link

How to run with a Qt project? #2

Closed vadi2 closed 4 years ago

vadi2 commented 4 years ago

I've got a Qt project that I can build and run either with qmake or cmake - how can I use it in this frontend?

I've read through the instructions, but it's not clear on how to get started.

rohanrhu commented 4 years ago

It must be like typical GDB debugging. Load executable, add a breakpoint and run. Also you can use it with gdbserver for remote debugging.

There is an article for GDB/Qt debugging: https://community.kde.org/Guidelines_and_HOWTOs/Debugging/Debugging_with_GDB#Improving_your_gdb_experience_for_KDE.2FQt_applications

vadi2 commented 4 years ago

My typical is different from your typical! I simply use an IDE - Qt Creator or CLion - which manages it all for me.

I got it to work by doing file <path to binary>, set cwd <working directory the binary should run under>, and run.

rohanrhu commented 4 years ago

Notice: When you load an executable with file browser, it will set cwd to executable directory.

vadi2 commented 4 years ago

Yeah. In my case I need it to be a different one, because a couple of files are loaded relatively to the binary.