Stephen Cheng
Stephen Cheng

Reputation: 996

Can't set breakpoint in QT Creator when debugging with CDB while processing is running

I am not able to set breakpoint in my program when debugging with CDB while the process is running. When I made a click on the left of the source line to set the break point, I got a red breakpoint with a busy status indicator on top of it. The busy indicator never goes away as expected. If I set a breakpoint prior to starting debugging, they will be applied successfully.

If I select Debug->interrupt from the menu while the process is running, QT Creator is not able to pause the process either. Therefore, I believe the cause of the problem is that QTC is not able to pause the process and apply the breakpoint.

If I use GDB, everything is fine. But I don't like to use GDB due to its much slower compiling speed.

Upvotes: 1

Views: 1730

Answers (1)

Vishnu Pedireddi
Vishnu Pedireddi

Reputation: 2192

Please check if you have the debugging tools for windows installed on your machine. http://msdn.microsoft.com/en-us/windows/hardware/gg463009

Check if CDB finds the microsoft symbols.

Go to Tools >> Options >> Debugger

Check if the following path is present in Symbol Paths Text field:

C:\Program Files\Debugging Tools for Windows (x64) symsrv*symsrv.dll*C:\Users\vish6025\AppData\Local\Temp\symbolcache*http://msdl.microsoft.com/download/symbols

If it's your operating system is 32 bit, You point it to

C:\Program Files\Debugging Tools for Windows

Upvotes: 1

Related Questions