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. Visual Studio
  4. Debugger doesn't step through C++ code properly!

Debugger doesn't step through C++ code properly!

Scheduled Pinned Locked Moved Visual Studio
debugginghelpcsharpc++visual-studio
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.
  • F Offline
    F Offline
    FrankRizzo
    wrote on last edited by
    #1

    VS .NET 2003 When tracing C++ code in the debugger, it will always get out of sync and highlight the wrong line of code as you step through/in code. This makes it very hard to debug! Normally (under VC6 etc) this means that the code/source don't match, a rebuild all should probably be done. But this doesn't seem to help, and I'm 100% sure that the source I am trying to trace is the same source that was complied :) Anyone notice this problem and/or have a solution? -Troy PS: This happens even when building a simple dummy application, but only in source files that you add to the project.

    B 1 Reply Last reply
    0
    • F FrankRizzo

      VS .NET 2003 When tracing C++ code in the debugger, it will always get out of sync and highlight the wrong line of code as you step through/in code. This makes it very hard to debug! Normally (under VC6 etc) this means that the code/source don't match, a rebuild all should probably be done. But this doesn't seem to help, and I'm 100% sure that the source I am trying to trace is the same source that was complied :) Anyone notice this problem and/or have a solution? -Troy PS: This happens even when building a simple dummy application, but only in source files that you add to the project.

      B Offline
      B Offline
      besmel
      wrote on last edited by
      #2

      Hi Frannk, I had this problem too (plus many others... sadly)... After a long period trying to discover where the problem was I 've found that the source code has some weird CRLF somewhere. Try to open the sources with another editor (i.e. VS 6) and save them, then rebuild. I think this solved my problem, but I don't remember exactly if this was the solution since I did so many test and trail (you know how things go when you get desperate...) hope this helps

      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