How do i debug in QtCreator?
Hi all,
I am very new to QTCreator .I have an application in Qtcreator and its building properly.When i am clicking 'Start debugging option in the Debug menu ',its not hitting the break point and its showing 'Program exited with code zero'.
Do i have to do any prior settings before debugging an app in Qt creator................Could anyone plz help me in dis.......am really stucked up.........I have seen some threads regarding dis,but i couldnt find any solution in those.................plz help me out?
Regards,
Payal
Re: How do i debug in QtCreator?
Are you running in debug mode ?
Also try putting break point at the start of application if it reaches there.
Re: How do i debug in QtCreator?
Thanks for replying.......
Under the build menu, in the set Build configuration Only release mode is available.......So do i have to make any changes on the mode , if so plz tell me how?
yaa,i am keeping breakpoint in the main() itself....and once i starts debugging, it stops the debugging and giving in the compiler output ,program exited with code 0....
Plz do reply me........
Also, i am running QT Creator in linux..
1 Attachment(s)
Re: How do i debug in QtCreator?
hi payal,
pls check the following to solve ur problem
1)press ctrl + 4 -> u have a projects configuration screen
Under Build Settings , Debug should be selected
2) on BuildSteps , select qmake build configuration = debug
Here im attaching the screenshot of the configuration
please check the attachment.
hope it helps
Bala
Re: How do i debug in QtCreator?
Thanks alot Bala............I am able to debug it........ :)
Re: How do i debug in QtCreator?
Hi!
I'm having the same problem but I'm not able to debug. I get the error "Executable failed: you can't do that without a process to debug". But I can debug it with gdb from console.
Thank's!
Re: How do i debug in QtCreator?
pls check the following ,
make sure u have correct path settings in the TOOLS->OPTIONS
Bala