Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Visual Studio 2005 not hitting breakpoints.

Visual Studio 2005 not hitting breakpoints.

Scheduled Pinned Locked Moved C / C++ / MFC
visual-studiodebuggingannouncementcsharpc++
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Like2Byte
    wrote on last edited by
    #1

    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?

    L 1 Reply Last reply
    0
    • L Like2Byte

      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?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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?

      L 1 Reply Last reply
      0
      • L Lost User

        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?

        L Offline
        L Offline
        Like2Byte
        wrote on last edited by
        #3

        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!

        L 1 Reply Last reply
        0
        • L Like2Byte

          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!

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Like2Byte wrote:

          I looked there before but must have missed it.

          Something I do too often to admit!

          L 1 Reply Last reply
          0
          • L Lost User

            Like2Byte wrote:

            I looked there before but must have missed it.

            Something I do too often to admit!

            L Offline
            L Offline
            Like2Byte
            wrote on last edited by
            #5

            Yeah, I'm going to chock it up to what my teachers told me in high school - "You (as in I) need to slow down." damn teachers! :laugh:

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups