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. .NET (Core and Framework)
  4. Breakpoint will not currently be hit

Breakpoint will not currently be hit

Scheduled Pinned Locked Moved .NET (Core and Framework)
debuggingworkspace
9 Posts 4 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.
  • T Offline
    T Offline
    TeachesOfPeaches
    wrote on last edited by
    #1

    Hi, I have two projects in my project explorer which I would like to debug.The main project calls the other one with Process.Start(new ProcessStartInfo(SubExe, Variables) But when I set a breakpiont in my sub project and start the debugger I get the message The breakpoint will not currently be hit. No symbols have been loaded for this document I have alredy set the configuration to debug, deleted bin and obj folders with pdb and exe folders and rebuilt both projects. I would be very grateful for any suggestions

    V K D 3 Replies Last reply
    0
    • T TeachesOfPeaches

      Hi, I have two projects in my project explorer which I would like to debug.The main project calls the other one with Process.Start(new ProcessStartInfo(SubExe, Variables) But when I set a breakpiont in my sub project and start the debugger I get the message The breakpoint will not currently be hit. No symbols have been loaded for this document I have alredy set the configuration to debug, deleted bin and obj folders with pdb and exe folders and rebuilt both projects. I would be very grateful for any suggestions

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      Close all instances of VisualStudio. Goto VSWebCache folder. Empty it. Now open the solution and Rebuild. Sometimes the cache goes out of sync.

      Vasudevan Deepak Kumar Personal Homepage Tech Gossips

      T 1 Reply Last reply
      0
      • V Vasudevan Deepak Kumar

        Close all instances of VisualStudio. Goto VSWebCache folder. Empty it. Now open the solution and Rebuild. Sometimes the cache goes out of sync.

        Vasudevan Deepak Kumar Personal Homepage Tech Gossips

        T Offline
        T Offline
        TeachesOfPeaches
        wrote on last edited by
        #3

        Thanks for the reply. But it doesn't work either :(

        1 Reply Last reply
        0
        • T TeachesOfPeaches

          Hi, I have two projects in my project explorer which I would like to debug.The main project calls the other one with Process.Start(new ProcessStartInfo(SubExe, Variables) But when I set a breakpiont in my sub project and start the debugger I get the message The breakpoint will not currently be hit. No symbols have been loaded for this document I have alredy set the configuration to debug, deleted bin and obj folders with pdb and exe folders and rebuilt both projects. I would be very grateful for any suggestions

          K Offline
          K Offline
          kubben
          wrote on last edited by
          #4

          Perhaps it would be better to just start the process you want to debug and then use the debug process to hook into the thing you want to debug. If one of the projects you are trying to debug is a windows service, using the debug processes is a good way to debug. Hope that helps. Ben

          T 1 Reply Last reply
          0
          • T TeachesOfPeaches

            Hi, I have two projects in my project explorer which I would like to debug.The main project calls the other one with Process.Start(new ProcessStartInfo(SubExe, Variables) But when I set a breakpiont in my sub project and start the debugger I get the message The breakpoint will not currently be hit. No symbols have been loaded for this document I have alredy set the configuration to debug, deleted bin and obj folders with pdb and exe folders and rebuilt both projects. I would be very grateful for any suggestions

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            It could also be that you set a breakpoint on a section of code that will never called. The debugger can figure this out when you start your app.

            Dave Kreskowiak Microsoft MVP - Visual Basic

            T 1 Reply Last reply
            0
            • K kubben

              Perhaps it would be better to just start the process you want to debug and then use the debug process to hook into the thing you want to debug. If one of the projects you are trying to debug is a windows service, using the debug processes is a good way to debug. Hope that helps. Ben

              T Offline
              T Offline
              TeachesOfPeaches
              wrote on last edited by
              #6

              Thats a good idea. The process I want to debug is expecting argumets from the caller procedure, but I think I can work around and this will work. Many Thaks.

              1 Reply Last reply
              0
              • D Dave Kreskowiak

                It could also be that you set a breakpoint on a section of code that will never called. The debugger can figure this out when you start your app.

                Dave Kreskowiak Microsoft MVP - Visual Basic

                T Offline
                T Offline
                TeachesOfPeaches
                wrote on last edited by
                #7

                I place the breakpoint on a MessageBox which is displayed when I start the application but the breakpoint itself wont be hit

                V 1 Reply Last reply
                0
                • T TeachesOfPeaches

                  I place the breakpoint on a MessageBox which is displayed when I start the application but the breakpoint itself wont be hit

                  V Offline
                  V Offline
                  Vasudevan Deepak Kumar
                  wrote on last edited by
                  #8

                  Configuration (Release) Mode?

                  Vasudevan Deepak Kumar Personal Homepage Tech Gossips

                  T 1 Reply Last reply
                  0
                  • V Vasudevan Deepak Kumar

                    Configuration (Release) Mode?

                    Vasudevan Deepak Kumar Personal Homepage Tech Gossips

                    T Offline
                    T Offline
                    TeachesOfPeaches
                    wrote on last edited by
                    #9

                    The way described by Ben is the solution to my problem. It works fine. Thanks for your help

                    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