StackGit
StackGit

Reputation: 11

Debug external library with qtcreator: navigate with debugger in sources instead assembler

I have CMake project in qtcreator and live555 opensource library imported with conan package manager. Qtcreator's debugger show me this error: live555 crash

I want to navigate inside live555's source code with debugger like i do on my own code, but debugger show me just assembler listing instead. Also, i can see full stack in debugger. This indicates that the library was built with debug symbols.

Platform info: ubuntu, gcc, gdb as qtcreator's debugger.

It looks like i should point debugger to live555 source code location but i dont know how it should be done.

I tried add 'directory /home/user/live' to ~/.gdbinit but it didn't help.

Upvotes: 0

Views: 160

Answers (1)

Misha T
Misha T

Reputation: 355

You could try add library source path in Tools > Options > Debugger > General Table "Source Paths Mapping" in QtCreator.

But are you sure that you know exact version of sources (git commit hash) for your binaries?

Upd. From qtcreator doc:

  • In the Source path field, specify the source path in the debug information of the executable as reported by the debugger.
  • In the Source path field, specify the source path in the debug information of the executable as reported by the debugger.

Upvotes: 0

Related Questions