Visual Studio 2005 not hitting breakpoints.
-
I'm building a small C app. ATM, I'm simply twiddling with a Hello World app because it seems that any app I create will not hit break points. I opened the project settings and /DEBUG was turned off under the linker settings. I turned that on, rebuilt and located my *.opt file. I attempted to 'debug' again and VS simply skips over the breakpoints. The breakpoint settings indicate that they are set to 'break always' and I *am* running (via F5) the debug version through VS. I've deleted all breakpoints, clean, rebuilt, adjusted settings and it still acts like it's a Release build. If I create an MFC app, breakpoints work fine. Anyone seen this before?
-
I'm building a small C app. ATM, I'm simply twiddling with a Hello World app because it seems that any app I create will not hit break points. I opened the project settings and /DEBUG was turned off under the linker settings. I turned that on, rebuilt and located my *.opt file. I attempted to 'debug' again and VS simply skips over the breakpoints. The breakpoint settings indicate that they are set to 'break always' and I *am* running (via F5) the debug version through VS. I've deleted all breakpoints, clean, rebuilt, adjusted settings and it still acts like it's a Release build. If I create an MFC app, breakpoints work fine. Anyone seen this before?
-
Like2Byte wrote:
I opened the project settings and /DEBUG was turned off under the linker settings.
Are you sure it was set ON in the compiler settings?
Before I posted originally, I had already changed this setting: "Linker->Debugging->Generate Debug Info" to YES (/DEBUG). I just now set "C/C++ ->General->Debug Information Format" to Program Database (/Zi). It was set to 'Disabled'. I've never seen a VS disable all debugging in a new project before and certainly not for a 'DEBUG' build. Do I need new glasses? ;) Anyway, thanks for your help. I looked there before but must have missed it. :doh: Cheers!
-
Before I posted originally, I had already changed this setting: "Linker->Debugging->Generate Debug Info" to YES (/DEBUG). I just now set "C/C++ ->General->Debug Information Format" to Program Database (/Zi). It was set to 'Disabled'. I've never seen a VS disable all debugging in a new project before and certainly not for a 'DEBUG' build. Do I need new glasses? ;) Anyway, thanks for your help. I looked there before but must have missed it. :doh: Cheers!
-
Like2Byte wrote:
I looked there before but must have missed it.
Something I do too often to admit!