0

I've been using QtCreator, (gcc debugger) and when I use debugging it doesn't stick to my code. If the error is raised in a dependency, sometimes it even goes into the qt framework itself (I have no idea how since Qt is stored in object code, right?). I would much appreciate a JustMyCode feature like the VSCode debugger has. Is there such a feature, and if so, how do I get to it?

1 Answer 1

0

There's no such option and I dont see value in it (why would you hide important information?).

gdb can "go" to qt framework when your application linked against debug qt libraries (Qt6Cored.dll, Qt6Guid.dll) or libraries with separate debug info, if it can't find debug info, it will still go there but instead of code it will show dissasebled instructions.

When error is raised or SEGFAULT happens it shows exactly where it happens, you can navigate stack down to your code in a Stack view.

Sign up to request clarification or add additional context in comments.

1 Comment

Specifically, JustMyCode makes it so that if it encounters an error, it will only show what part of my code caused the error. if the Qt framework throws an error, then it will show the error message, but will tell me what line of my code caused it, rather than what line of Qt caused it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.