Re: F5 stopped attaching the debugger automatically



nospam@xxxxxxxxxx (John Dalberg) wrote:
Using VS 2008 SP1 with an ASP.NET project.

Suddenly I lost the ability to automatically have the debugger attached
automatically when I run in debug mode (F5). I have 'ASP.NET' checked in
the project properties->Web section. Integrated Windows authentication is
checked in IIS. debug is enabled in web.config. I don't get any errors. I
have this issue whether I am using IIS or the VS web server. Manually
attaching the debugger works but I need to restore the ability to run in
debug mode as I always had been.


Ok I found out that the problem is because I have a <location> surrounding
<system.web> as in
<location path="." inheritInChildApplications="false">

As I remember having this pre SP1 caused the behavior mentioned in this
url:
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?Feedb
ackID=327456

Basically it created another <system.web> which had <compilation
debug="true" defaultLanguage="c#"> in it instead of adding it in the first
<system.web>. Actually the first <system.web> had it but the parser is not
parsing corectly. This caused the web.config to have two <system.web>
sections!


So it seems in SP1 the debugger just doesn't run. So what the heck is this?
A fix that seems to be a bad hack just to get rid of the behavior?

John Dalberg
.



Relevant Pages

  • Re: F5 stopped attaching the debugger automatically
    ... nospam@xxxxxxxxxx (John Dalberg) wrote: ... Suddenly I lost the ability to automatically have the debugger attached ... restore the ability to run in debug mode as I always had been. ...
    (microsoft.public.vstudio.general)
  • F5 stopped attaching the debugger automatically
    ... Suddenly I lost the ability to automatically have the debugger attached ... automatically when I run in debug mode. ... have this issue whether I am using IIS or the VS web server. ...
    (microsoft.public.vstudio.general)
  • Re: Setting objects to Nothing uses less memory!
    ... > in debug mode. ... Are you actually running the unit tests under a debugger? ... but whether it's executing under a debugger or not. ... your code is debug code but running without a debugger attached, ...
    (microsoft.public.dotnet.framework.performance)
  • RE: Dynamically Debugging for Security Bugs -- a useful tool ?
    ... SGI Irix has the Case-Vision debugger 'cvd' that will step backward, ... It also had the ability to reset the instruction point, ... Dynamically Debugging for Security Bugs -- a useful tool? ... I am doing research in the software visualisation field, ...
    (SecProg)
  • Re: how to modify code while debugging it without having to stop and then restart debugger
    ... also, both visualbasic and csharp have goto statements, which i do to not use in final code but can be real handy when used with the ability to change debugged code on the fly while inside the function being debugged. ... then i just turn the bad line into a comment line and the debugger will move the current focus to the next time, ... Do you try to ignore the syntax and grammar of the programming language ...
    (comp.lang.python)

Loading