PDA

View Full Version : QT creator Debugger doesn't stop at breakpoint and show up "Segmentation Fault"



Kevin Hoang
19th March 2010, 11:28
Few days ago, I create a GUI application by QT creator and use debugger without problems. I have changed the widget name, and add some controls into (I haven't add any codes to this project).

Today, I return this project, set a breakpoint at the main function and try to use debugger, but the debugger doesn't stop at the breakpoint, when I close my application (run by debugger), I got a message as following:

"The inferior stopped because it received a signal from the Operating System.
-- Signal Name: SIGSEG -- Segment Fault."

But, I click the Run button, my application run without errors (no warnings)
I try to create a new project, the debugger works fine.

I'm using Windows 7 Ultimate Licensed (fresh, no virus), QT Creator 1.3.1, QT Frameworks 4.6.2

stranger, help me!

ktk
19th March 2010, 21:46
The segmentation fault means your program crashed.
If a breakpoint is not hit you might not be running a debug build.

Kevin Hoang
20th March 2010, 09:51
I got it! I changed the build config, it works fine now!

you
3rd November 2011, 07:06
I got it! I changed the build config, it works fine now!

Hi Kevin,
I run into the same issue, could you please kindly share how you solve it?

Thanks a lot!

ChrisW67
3rd November 2011, 08:30
1 year, 7 months, and 14 days ago Kevin decided that in order to debug a program you need to have a debug, not release, build.

BTW: It is poor netiquette to resurrect threads that have been long dormant.