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. Debug mode and Break Points

Debug mode and Break Points

Scheduled Pinned Locked Moved C / C++ / MFC
c++debuggingquestionannouncement
2 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.
  • J Offline
    J Offline
    john john mackey
    wrote on last edited by
    #1

    Does this make sense? When I enable breakpoints, the code at the breakpoints gets executed and things appear to work as expected. When I DON’T ENABLE breakpoints, the code at the breakpoints DOES NOT get executed. It doesn’t make sense that enabling/disabling breakpoints would control if a piece of code is reached or not. I'm debugging an MFC app I created in VS2005. I am running the DEBUG version and attaching to the process. When I disable the breakpoints, nothing happens (I have used message boxes/print statements in place of breaks to see if code reached.)

    W 1 Reply Last reply
    0
    • J john john mackey

      Does this make sense? When I enable breakpoints, the code at the breakpoints gets executed and things appear to work as expected. When I DON’T ENABLE breakpoints, the code at the breakpoints DOES NOT get executed. It doesn’t make sense that enabling/disabling breakpoints would control if a piece of code is reached or not. I'm debugging an MFC app I created in VS2005. I am running the DEBUG version and attaching to the process. When I disable the breakpoints, nothing happens (I have used message boxes/print statements in place of breaks to see if code reached.)

      W Offline
      W Offline
      Waldermort
      wrote on last edited by
      #2

      john john mackey wrote:

      I have used message boxes/print statements in place of breaks to see if code reached

      It could be possible that message boxes are unable to be created. Why don't you instead try using OutputDebugString()? Are you sure this is not a problem with Debug/Release builds?

      Waldermort

      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