Breakpoint not working

Started by
3 comments, last by Endurion 18 years, 1 month ago
For some reason my breakpoints aren't working. I'm using Visual Studio.NET 2003 and C++. The program is passing the code as its carrying it out, it just simply isn't breaking for some reaosn.
Unless I say otherwise assume I'm talking bout c++. Make things a lot easier :D
Advertisement
Hey bud,

Try a clean-rebuild of your project. This has often solved this problem for me. Another likely explanation is that if optimisations are on and the code doesn't actually get used, ie you calculate something, but never use it anywhere once you have created it, then the compiler will optimise it out. I know this happens in shaders.

Hope that helps,

Dave
You can also call DebugBreak, or use Interrupt 3 (for example, "_asm int 3") to trigger a breakpoint.
Are you running a debug build or a release build? On release builds breakpoints are ignored.
Make sure you have debug information inside your executable and have turned off optimisations.

Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>

This topic is closed to new replies.

Advertisement