473,385 Members | 1,341 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

DEBUG fails to trap/catch on breakpoint...

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
--
----------------------------------------
-AC [MVP MCMS]
www.andrewconnell.com
www.andrewconnell.com/mvp

Nov 19 '05 #1
7 1805
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...en-us%3B306172

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

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 19 '05 #2
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" <cdeelsny@NO_SPAM_4_MEyahoo.com> wrote in message
news:ui*************@TK2MSFTNGP12.phx.gbl...
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...en-us%3B306172

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

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET

Nov 19 '05 #3
I forgot to mention this is Win2003 *SP1*, but I am pretty sure this was
happening before SP1 as wel.

--
----------------------------------------
-AC [MVP MCMS]
www.andrewconnell.com
www.andrewconnell.com/mvp
"AC [MVP MCMS]" <sw*********@gmail.com> wrote in message
news:eV**************@TK2MSFTNGP10.phx.gbl...
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
--
----------------------------------------
-AC [MVP MCMS]
www.andrewconnell.com
www.andrewconnell.com/mvp

Nov 19 '05 #4
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 [MVP MCMS]" <sw*********@gmail.com> wrote in message
news:uu****************@TK2MSFTNGP14.phx.gbl...
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" <cdeelsny@NO_SPAM_4_MEyahoo.com> wrote in message
news:ui*************@TK2MSFTNGP12.phx.gbl...
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...en-us%3B306172

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

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET


Nov 19 '05 #5
Yup... done that... still no luck...
--
----------------------------------------
-AC [MVP MCMS]
www.andrewconnell.com
www.andrewconnell.com/mvp
"William F. Robertson, Jr." <th****@nameht.org> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
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 [MVP MCMS]" <sw*********@gmail.com> wrote in message
news:uu****************@TK2MSFTNGP14.phx.gbl...
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" <cdeelsny@NO_SPAM_4_MEyahoo.com> wrote in message
news:ui*************@TK2MSFTNGP12.phx.gbl...
> 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...en-us%3B306172
>
> although most of those problems would result in your seeing an error
> dialog box, which I didn't hear you mention.
>
> --
> Craig Deelsnyder
> Microsoft MVP - ASP/ASP.NET



Nov 19 '05 #6
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.

--
----------------------------------------
-AC [MVP MCMS]
www.andrewconnell.com
www.andrewconnell.com/mvp
"AC [MVP MCMS]" <sw*********@gmail.com> wrote in message
news:eV**************@TK2MSFTNGP10.phx.gbl...
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
--
----------------------------------------
-AC [MVP MCMS]
www.andrewconnell.com
www.andrewconnell.com/mvp

Nov 19 '05 #7
It was such an obscure fix, I decided to throw it up on my blog for others
who may have this issue.
http://andrewconnell.com/blog/archiv...5/30/1278.aspx
--
----------------------------------------
-AC [MVP MCMS]
www.andrewconnell.com
www.andrewconnell.com/mvp
"AC [MVP MCMS]" <sw*********@gmail.com> wrote in message
news:eV**************@TK2MSFTNGP10.phx.gbl...
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
--
----------------------------------------
-AC [MVP MCMS]
www.andrewconnell.com
www.andrewconnell.com/mvp

Nov 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Alexander Eisenhuth | last post by:
Hi alltogether, I use ActivePython 2.4.1 , also the debug part from http://ftp.activestate.com/ActivePython/etc/ and VC 6.0 unter Windows XP. I can't figure out howto debug my c++ extension....
1
by: asdf | last post by:
Hello, I was enjoying working in VS for half a year without any problems and now I cannot debug anymore. Without any really reason my Studio tells me that the page that I want to debug has - No...
5
by: Grant Schenck | last post by:
Hello, I built an MTA which is used from an ASA and ASP pages. The MTA was developed in VC++ 6.0. How would I go about debugging into the C++ code? Thanks, Grant Schenck
6
by: Cormac | last post by:
Hi everyone, I'm writing Pure Data externals in C++ using Ms Visual C++ 7.0 and Windows2000. I'm running motions sensor hardware so there's a bit of real time data processing involved. When...
4
by: Wal Turner | last post by:
Consider the following simple class: public class ClassA { public static string VAR = "hello"; } public void MethodA() { while(true)
8
by: | last post by:
I'm starting up the development server myself and using the "Startup Url" property of the web project. The problem is i cannot debug. The debug symbols are never loaded. I realize they are under...
5
by: seenutn | last post by:
Hi, These questions are on C++ and Exceptions. 1) How can I debug through gdb to find the location where exception occured (Putting a breakpoint in exception handler will not help me as the...
4
by: js | last post by:
Is it possible to change the web.config or machine.config file to allow access to an .asp page? I'm new to .Net 2.0. Thanks. I got error: Server Error in '/xxx1' Application....
10
by: Ole | last post by:
Hi, Using VS2005 and a windows CE 5.0 device running CF2. Suddenly I can't debug my C# program from VS2005 - when setting a breakpoint I only see a ring instead of the normal red dot and when...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.