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. The Lounge
  3. Why debugging in VS2010 sucks today...

Why debugging in VS2010 sucks today...

Scheduled Pinned Locked Moved The Lounge
visual-studiodebuggingcsharpcomtools
24 Posts 11 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 Lost User

    I get some pretty weird behaviour if I have multiple files with the same name (in different projects in the same solution) Breakpoints randomly think they belong to the other file.. and weird things happen when they think that and the location at which they would be is not a breakable point Not as weird as what you describe though

    S Offline
    S Offline
    Scott Dorman
    wrote on last edited by
    #10

    Try the steps I mention here[^] and see if you get better behavior.

    Scott Dorman

    Microsoft® MVP - Visual C# | MCPD President - Tampa Bay IASA [Blog][Articles][Forum Guidelines]


    Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai

    1 Reply Last reply
    0
    • R Ravi Bhavnani

      OK, I never thought I'd write a post about why something sucks, but I'm fast losing patience with VS2010. For all its shiny chrome and (admittedly cool) "Call Hierarchy" and "Navigate To" commands (something Eclipse has had for at least 7 years :)) what good is an IDE if the debugger randomly interprets a "Step Out" and "Step Over" as a "Run"!? I'm debugging a suite of .NET smoke test projects (stuff I've done reliably and without pain in all previous VS versions since .NET 1.1) and have reached a breakpoint in a suspect method. Stepping statement by statement in the method sometimes causes the IDE to think I pressed "Run" (i.e. run to completion) which causes the test to continue running until it eventually fails down the line. Anyone else experience this? I'm unable to find references to this madness on the web. (FWIW, I'm debugging over remote desktop, but that shouldn't matter.) /ravi

      My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

      S Offline
      S Offline
      SimulationofSai
      wrote on last edited by
      #11

      Time to buy that new keyboard :)

      SG Aham Brahmasmi!

      1 Reply Last reply
      0
      • R Ravi Bhavnani

        OK, I never thought I'd write a post about why something sucks, but I'm fast losing patience with VS2010. For all its shiny chrome and (admittedly cool) "Call Hierarchy" and "Navigate To" commands (something Eclipse has had for at least 7 years :)) what good is an IDE if the debugger randomly interprets a "Step Out" and "Step Over" as a "Run"!? I'm debugging a suite of .NET smoke test projects (stuff I've done reliably and without pain in all previous VS versions since .NET 1.1) and have reached a breakpoint in a suspect method. Stepping statement by statement in the method sometimes causes the IDE to think I pressed "Run" (i.e. run to completion) which causes the test to continue running until it eventually fails down the line. Anyone else experience this? I'm unable to find references to this madness on the web. (FWIW, I'm debugging over remote desktop, but that shouldn't matter.) /ravi

        My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

        A Offline
        A Offline
        Abhinav S
        wrote on last edited by
        #12

        Ravi Bhavnani wrote:

        IDE to think I pressed "Run" (i.e. run to completion) which causes the test to continue running until it eventually fails down the line

        Are you sure Visual Studio 2010 is out of beta? :doh:

        R 1 Reply Last reply
        0
        • R Ravi Bhavnani

          Amazing - I was just about to post a reply about something similar! I find if I have only one document visible at any time (i.e. tabbed mode with only one tab group displayed), things appear to work fine.  The moment I fake MDI by displaying two documents (my preferred mode of working until VS2010 nixed MDI) things tend to go haywire.  It's possible that the UI is causing breakpoint associations to get munged. /ravi

          My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

          A Offline
          A Offline
          Allen Anderson
          wrote on last edited by
          #13

          I haven't installed vs.net 2010 yet but you say it doesn't do MDI anymore??? I hope that's not the case. That's the only mode I like to work in. I always have multiple windows open and visible.

          R 1 Reply Last reply
          0
          • R Ravi Bhavnani

            OK, I never thought I'd write a post about why something sucks, but I'm fast losing patience with VS2010. For all its shiny chrome and (admittedly cool) "Call Hierarchy" and "Navigate To" commands (something Eclipse has had for at least 7 years :)) what good is an IDE if the debugger randomly interprets a "Step Out" and "Step Over" as a "Run"!? I'm debugging a suite of .NET smoke test projects (stuff I've done reliably and without pain in all previous VS versions since .NET 1.1) and have reached a breakpoint in a suspect method. Stepping statement by statement in the method sometimes causes the IDE to think I pressed "Run" (i.e. run to completion) which causes the test to continue running until it eventually fails down the line. Anyone else experience this? I'm unable to find references to this madness on the web. (FWIW, I'm debugging over remote desktop, but that shouldn't matter.) /ravi

            My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

            G Offline
            G Offline
            Gary R Wheeler
            wrote on last edited by
            #14

            IIRC, VS2008 had a similar problem they corrected with a hotfix. Maybe they broke it again?

            Software Zen: delete this;
            Fold With Us![^]

            R 1 Reply Last reply
            0
            • R Ravi Bhavnani

              OK, I never thought I'd write a post about why something sucks, but I'm fast losing patience with VS2010. For all its shiny chrome and (admittedly cool) "Call Hierarchy" and "Navigate To" commands (something Eclipse has had for at least 7 years :)) what good is an IDE if the debugger randomly interprets a "Step Out" and "Step Over" as a "Run"!? I'm debugging a suite of .NET smoke test projects (stuff I've done reliably and without pain in all previous VS versions since .NET 1.1) and have reached a breakpoint in a suspect method. Stepping statement by statement in the method sometimes causes the IDE to think I pressed "Run" (i.e. run to completion) which causes the test to continue running until it eventually fails down the line. Anyone else experience this? I'm unable to find references to this madness on the web. (FWIW, I'm debugging over remote desktop, but that shouldn't matter.) /ravi

              My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

              T Offline
              T Offline
              TheGreatAndPowerfulOz
              wrote on last edited by
              #15

              I have had this sort of thing happen with VS2008, and not just in test code.

              Fight Big Government:
              http://obamacareclassaction.com/
              http://obamacaretruth.org/

              1 Reply Last reply
              0
              • A Allen Anderson

                I haven't installed vs.net 2010 yet but you say it doesn't do MDI anymore??? I hope that's not the case. That's the only mode I like to work in. I always have multiple windows open and visible.

                R Offline
                R Offline
                Ravi Bhavnani
                wrote on last edited by
                #16

                Yes, unfortunately they nixed MDI.  It's also my preferred mode of working.  Thankfully, you can have multiple windows open (tiled horizontally or vertically) but it requires a couple of extra mouse clicks to do this.  Unfortunately, the (apparently) buggy debugging makes this feature useless.  :( /ravi

                My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                1 Reply Last reply
                0
                • A Abhinav S

                  Ravi Bhavnani wrote:

                  IDE to think I pressed "Run" (i.e. run to completion) which causes the test to continue running until it eventually fails down the line

                  Are you sure Visual Studio 2010 is out of beta? :doh:

                  R Offline
                  R Offline
                  Ravi Bhavnani
                  wrote on last edited by
                  #17

                  Theoretically, it is. :) /ravi

                  My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                  1 Reply Last reply
                  0
                  • S Scott Dorman

                    Out of curiosity, have you tried the following: 1. Perform a "Clean Build" 2. Shutdown Visual Studio and physically delete all /bin/* and /obj/* folders 3. Delete the .suo file for the solution Some of the behavior you just described sounds like a mismatch between the .pdb files and the object files used for debugging. Try these steps and then try your debug session again and see if you get better results.

                    Scott Dorman

                    Microsoft® MVP - Visual C# | MCPD President - Tampa Bay IASA [Blog][Articles][Forum Guidelines]


                    Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai

                    R Offline
                    R Offline
                    Ravi Bhavnani
                    wrote on last edited by
                    #18

                    Yes, that was the first thing I tried.  I was hoping it was a .pdb mismatch. /ravi

                    My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                    1 Reply Last reply
                    0
                    • G Gary R Wheeler

                      IIRC, VS2008 had a similar problem they corrected with a hotfix. Maybe they broke it again?

                      Software Zen: delete this;
                      Fold With Us![^]

                      R Offline
                      R Offline
                      Ravi Bhavnani
                      wrote on last edited by
                      #19

                      Interesting.  I never experienced this in pre-VS2010. /ravi

                      My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                      1 Reply Last reply
                      0
                      • R Ravi Bhavnani

                        OK, I never thought I'd write a post about why something sucks, but I'm fast losing patience with VS2010. For all its shiny chrome and (admittedly cool) "Call Hierarchy" and "Navigate To" commands (something Eclipse has had for at least 7 years :)) what good is an IDE if the debugger randomly interprets a "Step Out" and "Step Over" as a "Run"!? I'm debugging a suite of .NET smoke test projects (stuff I've done reliably and without pain in all previous VS versions since .NET 1.1) and have reached a breakpoint in a suspect method. Stepping statement by statement in the method sometimes causes the IDE to think I pressed "Run" (i.e. run to completion) which causes the test to continue running until it eventually fails down the line. Anyone else experience this? I'm unable to find references to this madness on the web. (FWIW, I'm debugging over remote desktop, but that shouldn't matter.) /ravi

                        My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                        P Offline
                        P Offline
                        peterchen
                        wrote on last edited by
                        #20

                        Never happened to me, but that's the beauty of VS2008: personalized bugs noone else canreproduce.

                        Agh! Reality! My Archnemesis![^]
                        | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server.

                        R 1 Reply Last reply
                        0
                        • P peterchen

                          Never happened to me, but that's the beauty of VS2008: personalized bugs noone else canreproduce.

                          Agh! Reality! My Archnemesis![^]
                          | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server.

                          R Offline
                          R Offline
                          Ravi Bhavnani
                          wrote on last edited by
                          #21

                          Are you debugging .NET 3.5 assemblies?  (BTW, other Connect members are also able to repro this issue). /ravi

                          My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                          P 1 Reply Last reply
                          0
                          • R Ravi Bhavnani

                            OK, I never thought I'd write a post about why something sucks, but I'm fast losing patience with VS2010. For all its shiny chrome and (admittedly cool) "Call Hierarchy" and "Navigate To" commands (something Eclipse has had for at least 7 years :)) what good is an IDE if the debugger randomly interprets a "Step Out" and "Step Over" as a "Run"!? I'm debugging a suite of .NET smoke test projects (stuff I've done reliably and without pain in all previous VS versions since .NET 1.1) and have reached a breakpoint in a suspect method. Stepping statement by statement in the method sometimes causes the IDE to think I pressed "Run" (i.e. run to completion) which causes the test to continue running until it eventually fails down the line. Anyone else experience this? I'm unable to find references to this madness on the web. (FWIW, I'm debugging over remote desktop, but that shouldn't matter.) /ravi

                            My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                            D Offline
                            D Offline
                            Dave Sexton
                            wrote on last edited by
                            #22

                            Did you have any of the betas running on that machine?

                            But fortunately we have the nanny-state politicians who can step in to protect us poor stupid consumers, most of whom would not know a JVM from a frozen chicken. Bruce Pierson
                            Because programming is an art, not a science. Marc Clifton
                            I gave up when I couldn't spell "egg". Justine Allen

                            R 1 Reply Last reply
                            0
                            • D Dave Sexton

                              Did you have any of the betas running on that machine?

                              But fortunately we have the nanny-state politicians who can step in to protect us poor stupid consumers, most of whom would not know a JVM from a frozen chicken. Bruce Pierson
                              Because programming is an art, not a science. Marc Clifton
                              I gave up when I couldn't spell "egg". Justine Allen

                              R Offline
                              R Offline
                              Ravi Bhavnani
                              wrote on last edited by
                              #23

                              No. /ravi

                              My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                              1 Reply Last reply
                              0
                              • R Ravi Bhavnani

                                Are you debugging .NET 3.5 assemblies?  (BTW, other Connect members are also able to repro this issue). /ravi

                                My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                                P Offline
                                P Offline
                                peterchen
                                wrote on last edited by
                                #24

                                Maybe I'm way to sarcastic for Microsoft Connect today.

                                Agh! Reality! My Archnemesis![^]
                                | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server.

                                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