Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Debugging / July 2003

Tip: Looking for answers? Try searching our database.

Breakpoint in Separate class library being Ignored

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
martyje - 23 Jul 2003 16:43 GMT
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
[Bill Boris]msft - 23 Jul 2003 22:36 GMT
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
[quoted text clipped - 7 lines]
| >>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
tnews1.google.com!not-for-mail
| >>Xref: cpmsftngxa06.phx.gbl microsoft.public.vsnet.debugging:2871
| >>X-Tomcat-NG: microsoft.public.vsnet.debugging
[quoted text clipped - 24 lines]
| >>
| >>Marty

Signature

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

martyje - 24 Jul 2003 20:56 GMT
> Is your code behind file name the same name as the class libraries file
> name?  
[quoted text clipped - 45 lines]
> | >>
> | >>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.
[Bill Boris]msft - 24 Jul 2003 22:42 GMT
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
[quoted text clipped - 4 lines]
| >>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
| >>
| >>bboris@online@microsoft.com ([Bill Boris]msft) wrote in message
news:<56NR2JWUDHA.1668@cpmsftngxa06.phx.gbl>...
| >>> Is your code behind file name the same name as the class libraries
file
| >>> name?  
| >>> --------------------
[quoted text clipped - 9 lines]
| >>> | >>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

| >>> 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.
| >>> | >>
[quoted text clipped - 16 lines]
| >>applications assembly and the class libraries assembly are not the
| >>same name. They never can be because they deploy to the same folder.

Signature

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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.