Debugging in QT Creator "This is not like building a Debug."

I try to debug some racket code with QTCreator 2.2.81 and keep getting the message β€œThis is not like the Debug assembly. As a result, I wanted to make sure that I could at least debug the program in gdb. I found that I couldn’t do this is in gdb without adding the following lines to my .gdbinit file:

handle SIGSEGV nostop noprint
handle SIG33 nostop noprint pass
handle SIG32 nostop noprint pass

As soon as I did this, I was able to successfully debug the program using GDB. I am not opposed to using GDB, but that is not part of my normal workflow, and I would prefer to use the built-in functions offered by Qt Creator. I made sure the option was checked for using the my.gdbinit file in Qt Creator, and I was still facing the same problems. Any tips on what I need to do to get debugging in qt?

+3
source share
1 answer

You should add the following to your .pro file:

CONFIG += debug
+2
source

All Articles