all groups > visual studio .net debugging > july 2003 >
You're in the

visual studio .net debugging

group:

Breakpoint in Separate class library being Ignored


Breakpoint in Separate class library being Ignored martye NO[at]SPAM onsphere.com
7/23/2003 8:43:30 AM
visual studio .net debugging:
I have remote debugging setup on a Win2k3 server and I'm accessing it
from VS.Net 2003.

I can attach to the process fine and can set a breakpoint in an code
behind the aspx page and have it work just fine. But if a have a class
in a separate assembly (different than the web application assembly)
the debugger will not break on a breakpoint in that assembly or allow
me to step from a breakpoint in the aspx page code into the class that
is in the different assembly.

I've double checked all the debug settings on the class library's
project in my solution and the web application is setup with a project
reference to the class library project. I've verified that the debug
files are being copied to the server with the assembly.

I'm not sure what to check next. It is acting as though the class
library assembly is executing in a different process than the web page
code-behind that is using the class and therefore is not recognized by
the debugging process.

Any help with this would be appreciated.

Thanks,

RE: Breakpoint in Separate class library being Ignored bboris NO[at]SPAM online NO[at]SPAM microsoft.com
7/23/2003 9:36:15 PM
Is your code behind file name the same name as the class libraries file
name?
--------------------
| >>From: martye@onsphere.com (martyje)
| >>Newsgroups: microsoft.public.vsnet.debugging
| >>Subject: Breakpoint in Separate class library being Ignored
| >>Date: 23 Jul 2003 08:43:30 -0700
| >>Organization: http://groups.google.com/
| >>Lines: 25
| >>Message-ID: <2a3ebe1d.0307230743.100f47a6@posting.google.com>
| >>NNTP-Posting-Host: 198.143.228.3
| >>Content-Type: text/plain; charset=ISO-8859-1
| >>Content-Transfer-Encoding: 8bit
| >>X-Trace: posting.google.com 1058975011 17900 127.0.0.1 (23 Jul 2003
15:43:31 GMT)
| >>X-Complaints-To: groups-abuse@google.com
| >>NNTP-Posting-Date: 23 Jul 2003 15:43:31 GMT
| >>Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!newsfee
d01.sul.t-online.de!t-online.de!newsfeed.online.be!cyclone.bc.net!sjc70.webu
senet.com!news.webusenet.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!pos
tnews1.google.com!not-for-mail
| >>Xref: cpmsftngxa06.phx.gbl microsoft.public.vsnet.debugging:2871
| >>X-Tomcat-NG: microsoft.public.vsnet.debugging
| >>
| >>I have remote debugging setup on a Win2k3 server and I'm accessing it
| >>from VS.Net 2003.
| >>
| >>I can attach to the process fine and can set a breakpoint in an code
| >>behind the aspx page and have it work just fine. But if a have a class
| >>in a separate assembly (different than the web application assembly)
| >>the debugger will not break on a breakpoint in that assembly or allow
| >>me to step from a breakpoint in the aspx page code into the class that
| >>is in the different assembly.
| >>
| >>I've double checked all the debug settings on the class library's
| >>project in my solution and the web application is setup with a project
| >>reference to the class library project. I've verified that the debug
| >>files are being copied to the server with the assembly.
| >>
| >>I'm not sure what to check next. It is acting as though the class
| >>library assembly is executing in a different process than the web page
| >>code-behind that is using the class and therefore is not recognized by
| >>the debugging process.
| >>
| >>Any help with this would be appreciated.
| >>
| >>Thanks,
| >>
| >>Marty
| >>


--
bboris, C# Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Re: Breakpoint in Separate class library being Ignored martye NO[at]SPAM onsphere.com
7/24/2003 12:56:58 PM
[quoted text, click to view]

In my \bin directory under my Asp.Net application I have two
Assemblies (DLL's) and the associated debug files (*.pdb). One
assembly is for the web application the second assembly is my class
library. If I put a breakpoint in the code behind which resides in the
web applications assembly it works fine. If I put a breakpoint in a
method in a class the exists in the class library assembly it is
ignored (and I cannot step into the method when I break on the
codebehind of the page).

So I'm not sure if I understand your question but... No the web
applications assembly and the class libraries assembly are not the
Re: Breakpoint in Separate class library being Ignored bboris NO[at]SPAM online NO[at]SPAM microsoft.com
7/24/2003 9:42:24 PM
I guess my question was is your source file for the code behind called
class1.cs and your library file also class1.cs?

Another possiblity is that the symbols don't match up to the dll, that they
are of different versions. Are the time stamps for the libary .dll the
same as the .pdb file?

--------------------
| >>From: martye@onsphere.com (martyje)
| >>Newsgroups: microsoft.public.vsnet.debugging
| >>Subject: Re: Breakpoint in Separate class library being Ignored
| >>Date: 24 Jul 2003 12:56:58 -0700
| >>Organization: http://groups.google.com/
| >>Lines: 65
| >>Message-ID: <2a3ebe1d.0307240411.6cba7605@posting.google.com>
| >>References: <2a3ebe1d.0307230743.100f47a6@posting.google.com>
<56NR2JWUDHA.1668@cpmsftngxa06.phx.gbl>
| >>NNTP-Posting-Host: 198.143.228.3
| >>Content-Type: text/plain; charset=ISO-8859-1
| >>Content-Transfer-Encoding: 8bit
| >>X-Trace: posting.google.com 1059076620 610 127.0.0.1 (24 Jul 2003
19:57:00 GMT)
| >>X-Complaints-To: groups-abuse@google.com
| >>NNTP-Posting-Date: 24 Jul 2003 19:57:00 GMT
| >>Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-04!sn-
xit-06!sn-xit-09!supernews.com!postnews1.google.com!not-for-mail
| >>Xref: cpmsftngxa06.phx.gbl microsoft.public.vsnet.debugging:2894
| >>X-Tomcat-NG: microsoft.public.vsnet.debugging
| >>
[quoted text, click to view]
| >>> Is your code behind file name the same name as the class libraries
file
| >>> name?
| >>> --------------------
| >>> | >>From: martye@onsphere.com (martyje)
| >>> | >>Newsgroups: microsoft.public.vsnet.debugging
| >>> | >>Subject: Breakpoint in Separate class library being Ignored
| >>> | >>Date: 23 Jul 2003 08:43:30 -0700
| >>> | >>Organization: http://groups.google.com/
| >>> | >>Lines: 25
| >>> | >>Message-ID: <2a3ebe1d.0307230743.100f47a6@posting.google.com>
| >>> | >>NNTP-Posting-Host: 198.143.228.3
| >>> | >>Content-Type: text/plain; charset=ISO-8859-1
| >>> | >>Content-Transfer-Encoding: 8bit
| >>> | >>X-Trace: posting.google.com 1058975011 17900 127.0.0.1 (23 Jul
2003
| >>> 15:43:31 GMT)
| >>> | >>X-Complaints-To: groups-abuse@google.com
| >>> | >>NNTP-Posting-Date: 23 Jul 2003 15:43:31 GMT
| >>> | >>Path:
| >>>
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!newsfee
| >>>
d01.sul.t-online.de!t-online.de!newsfeed.online.be!cyclone.bc.net!sjc70.webu
| >>>
senet.com!news.webusenet.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!pos
| >>> tnews1.google.com!not-for-mail
| >>> | >>Xref: cpmsftngxa06.phx.gbl microsoft.public.vsnet.debugging:2871
| >>> | >>X-Tomcat-NG: microsoft.public.vsnet.debugging
| >>> | >>
| >>> | >>I have remote debugging setup on a Win2k3 server and I'm
accessing it
| >>> | >>from VS.Net 2003.
| >>> | >>
| >>> | >>I can attach to the process fine and can set a breakpoint in an
code
| >>> | >>behind the aspx page and have it work just fine. But if a have a
class
| >>> | >>in a separate assembly (different than the web application
assembly)
| >>> | >>the debugger will not break on a breakpoint in that assembly or
allow
| >>> | >>me to step from a breakpoint in the aspx page code into the class
that
| >>> | >>is in the different assembly.
| >>> | >>
| >>> | >>I've double checked all the debug settings on the class library's
| >>> | >>project in my solution and the web application is setup with a
project
| >>> | >>reference to the class library project. I've verified that the
debug
| >>> | >>files are being copied to the server with the assembly.
| >>> | >>
| >>> | >>I'm not sure what to check next. It is acting as though the class
| >>> | >>library assembly is executing in a different process than the web
page
| >>> | >>code-behind that is using the class and therefore is not
recognized by
| >>> | >>the debugging process.
| >>> | >>
| >>> | >>Any help with this would be appreciated.
| >>> | >>
| >>> | >>Thanks,
| >>> | >>
| >>> | >>Marty
| >>> | >>
| >>
| >>In my \bin directory under my Asp.Net application I have two
| >>Assemblies (DLL's) and the associated debug files (*.pdb). One
| >>assembly is for the web application the second assembly is my class
| >>library. If I put a breakpoint in the code behind which resides in the
| >>web applications assembly it works fine. If I put a breakpoint in a
| >>method in a class the exists in the class library assembly it is
| >>ignored (and I cannot step into the method when I break on the
| >>codebehind of the page).
| >>
| >>So I'm not sure if I understand your question but... No the web
| >>applications assembly and the class libraries assembly are not the
| >>same name. They never can be because they deploy to the same folder.
| >>


--
bboris, C# Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
AddThis Social Bookmark Button