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. How do I set a breakpoint in an attached process in visual studio?

How do I set a breakpoint in an attached process in visual studio?

Scheduled Pinned Locked Moved C#
questioncsharpvisual-studiodebugging
5 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.
  • X Offline
    X Offline
    Xarzu
    wrote on last edited by
    #1

    I have started a local host application and I attached a project in visual studio to this iexplorer process what was running the app. But I am unable to set break points in the code. I have tried to set break points but the errors says: "This breakpoint will not currently be hit. No symbols have been loaded for this document." Please advise.

    Z D 2 Replies Last reply
    0
    • X Xarzu

      I have started a local host application and I attached a project in visual studio to this iexplorer process what was running the app. But I am unable to set break points in the code. I have tried to set break points but the errors says: "This breakpoint will not currently be hit. No symbols have been loaded for this document." Please advise.

      Z Offline
      Z Offline
      ZurdoDev
      wrote on last edited by
      #2

      It's because your code is not inside iexplorer.exe. It depends on what version of ASP.Net/Visual Studio but here are some examples, debugging - How do I attach the debugger to IIS instead of ASP.NET Development Server? - Stack Overflow[^]

      Social Media - A platform that makes it easier for the crazies to find each other. Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

      X 1 Reply Last reply
      0
      • X Xarzu

        I have started a local host application and I attached a project in visual studio to this iexplorer process what was running the app. But I am unable to set break points in the code. I have tried to set break points but the errors says: "This breakpoint will not currently be hit. No symbols have been loaded for this document." Please advise.

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

        ASP.NET, MVC, WebApi, ..., code always runs entirely on the server side, not in the browser. You're looking for your code in the wrong process.

        Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
        Dave Kreskowiak

        X 1 Reply Last reply
        0
        • Z ZurdoDev

          It's because your code is not inside iexplorer.exe. It depends on what version of ASP.Net/Visual Studio but here are some examples, debugging - How do I attach the debugger to IIS instead of ASP.NET Development Server? - Stack Overflow[^]

          Social Media - A platform that makes it easier for the crazies to find each other. Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

          X Offline
          X Offline
          Xarzu
          wrote on last edited by
          #4

          The solution is to attach it to the w3wp process, not the iexplorer or any browser process.

          1 Reply Last reply
          0
          • D Dave Kreskowiak

            ASP.NET, MVC, WebApi, ..., code always runs entirely on the server side, not in the browser. You're looking for your code in the wrong process.

            Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
            Dave Kreskowiak

            X Offline
            X Offline
            Xarzu
            wrote on last edited by
            #5

            The solution is to attach it to the w3wp process, not the iexplorer or any browser process.

            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