views:

38

answers:

2

How to disable qt creator from auto building when trying to debug?

Currently when debug button is clicked, it automatically starts build. I want to disable this and just proceed to debug.

A: 

That is not probably what you really want, since your source code may become out of sync with the binary. That is why this is enforced.

Ihor Kaharlichenko
I would like to disable auto build. I've a huge source code (webkit engine) and I would like to debug again and again keeping breakpoints at different places. The time taken to start the build itself will be around 1 minute and I would not like it to build every time in spite of me not modifying the code.
Bharathwaaj
If you don't modify th build, nothing should be rebuilt?
Frank
@Frank,That should be the case, but it doesn't always work that way. I don't know if this is the asker's issue, but my company's makefiles used to always rebuild the code, which was quite annoying. Just recently did we have a makefile master change the makefiles so that they did not rebuild every time. With our particular issue, we had some dummy targets that copied files around, forcing a rebuild every time.
Chance
@Frank: Yes.. Nothing won't be built. But make will start probing whether to build or not. And that takes considerable amount of time.
Bharathwaaj
+1  A: 

Navigate to Tools/Options. Select Projects, General tab. Uncheck "Always build project before running".

Aaron
Awesome. Thanks!
Bharathwaaj