Debugging problems in .NET...breakpoints never hit.

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Debugging problems in .NET...breakpoints never hit.

    I have my project(s) set to Debug mode...asp.net debugging is enabled, I've
    re-registered asp_net. This particular solution has an asp.net and an ASP
    application in it...I can set breakpoints in the ASP application and the
    breakpoints are hit but the breakpoints in the asp.net application are never
    hit. This used to work and I'm not sure what happened to cause it to
    break....I've read all of the posts/documents that I can find but I still
    can't debug....very frustrating..(especially for an overworked developer
    ;))...any help would be greatly appreciated..


    thanks
    Doug

    --
    Doug Swanson
    Senior Applications Developer
    Synchrono, Inc
    651.228.1772
    [email]dswanson@synchrono.com[/email]


    Doug Swanson Guest

  2. Similar Questions and Discussions

    1. Why breakpoints and disabled?
      Hi, Sometimes during debugging, I come across the below message, "One or more breakpoints cannot be set and have been disabled. Execution will...
    2. Debugging output does not appear when use Debugging IPAddresses
      I recently absorbed the task of supporting our CF MX 6.1 server. We have an app that we need to debug - the developer asked us to add her IP...
    3. Breakpoints ignored in component
      I have two projects in the same solution. One of them contains a component, that is finished, and installed in the toolbox. In the second...
    4. debugging problem - breakpoints not hit
      hi, i am developing a webservice and i have a webservice and an asp.net project inside a single solution. i was asble to add breakpoints to...
    5. Project Builder breakpoints in Java
      I suddenly seem to be unable to set breakpoints in my Java code using Project Builder. I'm sure that it was working at one time, but now the...
  3. #2

    Default Re: Debugging problems in .NET...breakpoints never hit.


    "Doug Swanson" <dcswanson@surfbest.net> wrote in message
    news:uhzCI%23tUDHA.412@tk2msftngp13.phx.gbl...
    > I have my project(s) set to Debug mode...asp.net debugging is enabled,
    I've
    > re-registered asp_net. This particular solution has an asp.net and an
    ASP
    > application in it...I can set breakpoints in the ASP application and the
    > breakpoints are hit but the breakpoints in the asp.net application are
    never
    > hit. This used to work and I'm not sure what happened to cause it to
    > break....I've read all of the posts/documents that I can find but I still
    > can't debug....very frustrating..(especially for an overworked developer
    > ;))...any help would be greatly appreciated..
    >
    Try:

    Instead of debugging with F5, just run the web app from IE, and attach the
    aspnet_wp.exe process with Tools\Debug Processes. Be sure to pick the right
    AppDomain to debug.

    David


    David Browne Guest

  4. #3

    Default Re: Debugging problems in .NET...breakpoints never hit.

    David,

    I am having a similar problem to Doug and have tried everything
    recommended, except attaching "the aspnet_wp.exe process with
    Tools\Debug Processes". Can you explain how to do this?

    In VS, I have selected 'Tools' -> 'Debug Processes' and can see my
    ASP.NET assembly running under the process IEXPLORE.EXE. I have
    selected the attach button and under option 'Choose the program types
    you want to debug', I have ticked the option 'Common Language Runtime'
    (other options include 'Microsoft T-SQL' and 'Script') and the process
    is added to the 'Debugged Processes' list.

    Now, I initiate an event where I know a breakpoint has been
    strategicly placed and (drum-roll) - no debugging.

    What have I missed?

    Stephen


    "David Browne" <davidbaxterbrowne no potted [email]meat@hotmail.com[/email]> wrote in message news:<uS$2mhuUDHA.2156@TK2MSFTNGP11.phx.gbl>...
    > "Doug Swanson" <dcswanson@surfbest.net> wrote in message
    > news:uhzCI%23tUDHA.412@tk2msftngp13.phx.gbl...
    > > I have my project(s) set to Debug mode...asp.net debugging is enabled,
    > I've
    > > re-registered asp_net. This particular solution has an asp.net and an
    > ASP
    > > application in it...I can set breakpoints in the ASP application and the
    > > breakpoints are hit but the breakpoints in the asp.net application are
    > never
    > > hit. This used to work and I'm not sure what happened to cause it to
    > > break....I've read all of the posts/documents that I can find but I still
    > > can't debug....very frustrating..(especially for an overworked developer
    > > ;))...any help would be greatly appreciated..
    > >
    > Try:
    >
    > Instead of debugging with F5, just run the web app from IE, and attach the
    > aspnet_wp.exe process with Tools\Debug Processes. Be sure to pick the right
    > AppDomain to debug.
    >
    > David
    Stephen Miller Guest

  5. #4

    Default Re: Debugging problems in .NET...breakpoints never hit.


    "Stephen Miller" <jsausten@hotmail.com> wrote in message
    news:cdb404de.0307271653.8373399@posting.google.co m...
    > David,
    >
    > I am having a similar problem to Doug and have tried everything
    > recommended, except attaching "the aspnet_wp.exe process with
    > Tools\Debug Processes". Can you explain how to do this?
    >
    > In VS, I have selected 'Tools' -> 'Debug Processes' and can see my
    > ASP.NET assembly running under the process IEXPLORE.EXE.
    IEXPLORE is internet explorer. Only client-side javascript runs there.

    You want aspnet_wp.exe (make sure you have "Show system processes" and "Show
    processes in all sessions" checked). "Attach" the aspnet_wp.exe process,
    click "Common Language Runtime", and choose which AppDomains you want to
    debug.

    That's it. Make sure the web server is running an up-to-date debug build of
    your application.

    If the web server is on a different machine, you have to install Visual
    Studio Remote Debugging on the web server. This is on disk 1 of VS.

    David


    David Browne Guest

  6. #5

    Default Re: Debugging problems in .NET...breakpoints never hit.


    "Doug Swanson" <dcswanson@surfbest.net> wrote in message
    news:%23FgspiRVDHA.216@TK2MSFTNGP11.phx.gbl...
    >
    > David,
    >
    > Thanks for the reply...following your process I am able to get debug to
    > work...but it is a pain to go through all of these extra steps to get
    > the debug process for aspnet_wp.exe process...is there something else I
    > can do (bug fixes, reinstall vs.net?) that would clear this thing up and
    > get it back to what it was? (be able to press f5 and then debug works!)
    >
    I don't know.
    I spent my whole life's quota of trying to get this kind of debugging
    working back on Visual Interdev.
    At the first sign of trouble I give up and attach the proccess.

    David


    David Browne Guest

  7. #6

    Default Re: Debugging problems in .NET...breakpoints never hit.


    I know exactly what you're saying...I guess my debugging routine has
    changed...thanks
    Doug


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Doug Swanson Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139