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

D

Doug Swanson

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
(e-mail address removed)
 
D

David Browne

Doug Swanson said:
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
 
S

Stephen Miller

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
 
D

David Browne

Stephen Miller said:
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
 
D

David Browne

Doug Swanson said:
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
 
D

Doug Swanson

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top