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#
  4. weird break point

weird break point

Scheduled Pinned Locked Moved C#
visual-studioquestioncsharpcomdebugging
4 Posts 3 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.
  • N Offline
    N Offline
    novachen
    wrote on last edited by
    #1

    Hi! I have really weird break point. Look at my screen shoot http://www.mapsea.com/vs.jpg First break is normal and can stop when program run to that position. Second break show with a question symbol inside. move the mouse cursor over it. It say the break won't be hit for no runnable code associated with it. But I can stop at the first position and get to the second one by trace step by step. In fact, the lines below that has the same bad behaviour, the lines above it act as normal break. I really don't know what's wrong. Is it a bug of Visual Studio or a my own fault? It happens in several files in my workspace. I can't bear it any longer. I have rebuild the project several times, but with same result. Anyone know the solution to get rid of it? Thanks!!

    L R 2 Replies Last reply
    0
    • N novachen

      Hi! I have really weird break point. Look at my screen shoot http://www.mapsea.com/vs.jpg First break is normal and can stop when program run to that position. Second break show with a question symbol inside. move the mouse cursor over it. It say the break won't be hit for no runnable code associated with it. But I can stop at the first position and get to the second one by trace step by step. In fact, the lines below that has the same bad behaviour, the lines above it act as normal break. I really don't know what's wrong. Is it a bug of Visual Studio or a my own fault? It happens in several files in my workspace. I can't bear it any longer. I have rebuild the project several times, but with same result. Anyone know the solution to get rid of it? Thanks!!

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      I had a similar problem when I had an assembly with the same version number in the GAC as the one I was building. Removing the file from GAC was the solution. HTH :) leppie::AllocCPArticle("Zee blog");
      Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.

      N 1 Reply Last reply
      0
      • L leppie

        I had a similar problem when I had an assembly with the same version number in the GAC as the one I was building. Removing the file from GAC was the solution. HTH :) leppie::AllocCPArticle("Zee blog");
        Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.

        N Offline
        N Offline
        novachen
        wrote on last edited by
        #3

        Thanks for your response. But I still don't know what to do. I didn't modify any assembly's version manually yet. And don't know which one conflict. Can you describe some more detail for me? Thank you!!

        1 Reply Last reply
        0
        • N novachen

          Hi! I have really weird break point. Look at my screen shoot http://www.mapsea.com/vs.jpg First break is normal and can stop when program run to that position. Second break show with a question symbol inside. move the mouse cursor over it. It say the break won't be hit for no runnable code associated with it. But I can stop at the first position and get to the second one by trace step by step. In fact, the lines below that has the same bad behaviour, the lines above it act as normal break. I really don't know what's wrong. Is it a bug of Visual Studio or a my own fault? It happens in several files in my workspace. I can't bear it any longer. I have rebuild the project several times, but with same result. Anyone know the solution to get rid of it? Thanks!!

          R Offline
          R Offline
          Rahul Walavalkar
          wrote on last edited by
          #4

          Hi novachen, I dont know why this is happening, but to explicitly break at some point, instead of using a breakpoint, try using System.Diagnostics.Debugger.Break(); Do let me know if it helps.. Cheers, Rahul I do not understand what I do. For what I want to do I do not do, but what I hate I do. - Romans 7:15

          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