DEBUG fails to trap/catch on breakpoint...

A

AC [MVP MCMS]

Wierd situation here. Running ASP.NET 1.1 on Win2003. I have to manually
attach the debugger to a process in order to debug. So I set a breakpoint
in an obvious place (like within the Page.Load event) that will catch it.
For Win2003, I attach to the w3wp.exe process.

I've made sure my project is building as DEBUG.
I've made sure the breakpoint it reachable.
I've made sure my web.config has debug=true.

But when I run through the page, the breakpoint remains with the question
mark within the left margin of the code behind.

Why wouldn't VS.NET break on the breakpoint? Based on the question mark in
the margin, I'm assuming VS.NET isn't attaching to the process. What could
cause this?

Thanks in advance
 
C

Craig Deelsnyder

AC said:
Wierd situation here. Running ASP.NET 1.1 on Win2003. I have to manually
attach the debugger to a process in order to debug. So I set a breakpoint
in an obvious place (like within the Page.Load event) that will catch it.
For Win2003, I attach to the w3wp.exe process.

I've made sure my project is building as DEBUG.
I've made sure the breakpoint it reachable.
I've made sure my web.config has debug=true.

But when I run through the page, the breakpoint remains with the question
mark within the left margin of the code behind.

Why wouldn't VS.NET break on the breakpoint? Based on the question mark in
the margin, I'm assuming VS.NET isn't attaching to the process. What could
cause this?

Thanks in advance

Refresh my memory (I don't have a PC w/ VS handy), is this setting tied
to web.config (i.e. updates it)?:

http://support.microsoft.com/kb/306169/EN-US/

If so, meaning it's not a solution for you, I would first verify when
you build the debug version that the pdb files are created in the same
location as your dll(s). Otherwise, the motherload of most problems
like this can be found here:

http://support.microsoft.com/default.aspx?scid=kb;en-us;306172

although most of those problems would result in your seeing an error
dialog box, which I didn't hear you mention.
 
A

AC [MVP MCMS]

ASP.NET debugging is enabled and you're correct, there aren't any error
messages that popup... it just never seems to really attach to the debug
process. The PDB files are there and have the same timestamp as the DLL's.

ANy other ideas?
 
A

AC [MVP MCMS]

I forgot to mention this is Win2003 *SP1*, but I am pretty sure this was
happening before SP1 as wel.
 
W

William F. Robertson, Jr.

Make sure when you attach to the process that the Common Language Runtime
option is checked in the dialog that opens after you hit attach.

bill

AC said:
ASP.NET debugging is enabled and you're correct, there aren't any error
messages that popup... it just never seems to really attach to the debug
process. The PDB files are there and have the same timestamp as the DLL's.

ANy other ideas?
 
A

AC [MVP MCMS]

Yup... done that... still no luck...


--
----------------------------------------
-AC [MVP MCMS]
www.andrewconnell.com
www.andrewconnell.com/mvp


William F. Robertson said:
Make sure when you attach to the process that the Common Language Runtime
option is checked in the dialog that opens after you hit attach.

bill

AC said:
ASP.NET debugging is enabled and you're correct, there aren't any error
messages that popup... it just never seems to really attach to the debug
process. The PDB files are there and have the same timestamp as the DLL's.

ANy other ideas?

--
----------------------------------------
-AC [MVP MCMS]
www.andrewconnell.com
www.andrewconnell.com/mvp


Craig Deelsnyder said:
AC [MVP MCMS] wrote:
Wierd situation here. Running ASP.NET 1.1 on Win2003. I have to
manually attach the debugger to a process in order to debug. So I set a
breakpoint in an obvious place (like within the Page.Load event) that
will catch it. For Win2003, I attach to the w3wp.exe process.

I've made sure my project is building as DEBUG.
I've made sure the breakpoint it reachable.
I've made sure my web.config has debug=true.

But when I run through the page, the breakpoint remains with the question
mark within the left margin of the code behind.

Why wouldn't VS.NET break on the breakpoint? Based on the question mark
in the margin, I'm assuming VS.NET isn't attaching to the process. What
could cause this?

Thanks in advance

Refresh my memory (I don't have a PC w/ VS handy), is this setting tied to
web.config (i.e. updates it)?:

http://support.microsoft.com/kb/306169/EN-US/

If so, meaning it's not a solution for you, I would first verify when you
build the debug version that the pdb files are created in the same
location as your dll(s). Otherwise, the motherload of most problems like
this can be found here:

http://support.microsoft.com/default.aspx?scid=kb;en-us;306172

although most of those problems would result in your seeing an error
dialog box, which I didn't hear you mention.
 
A

AC [MVP MCMS]

Little more info to make it even more wierd:

Manually attaching to the w3wp.exe didn't work (skipps the breakpoint).

Automatically jumping into debug mode by hitting F5 does stop at the
breakpoint.

Have opened a PSS case on this and will post my results.
 

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

Top