From: Nathan Sokalski on 5 Mar 2010 17:08 I have two projects in the same Solution, one of which is a Web Application, the other of which is a Class Library. When debugging, if I put a breakpoint in the Web Application, it stops there when it should, but the debugger refuses to stop at the breakpoints in the Class Library. Is there something special I need to do when debugging a Class Library while using it in a Web Application? Thanks. -- Nathan Sokalski njsokalski(a)hotmail.com http://www.nathansokalski.com/
From: Scott M. on 5 Mar 2010 17:35 "Nathan Sokalski" <njsokalski(a)hotmail.com> wrote in message news:4D3BF4D3-752A-46DE-965E-A27B527F74B8(a)microsoft.com... >I have two projects in the same Solution, one of which is a Web >Application, the other of which is a Class Library. When debugging, if I >put a breakpoint in the Web Application, it stops there when it should, but >the debugger refuses to stop at the breakpoints in the Class Library. Is >there something special I need to do when debugging a Class Library while >using it in a Web Application? Thanks. Yes, place another breakpoint in the Class Library code at whatever the entry points are. -Scott
From: Nathan Sokalski on 5 Mar 2010 18:03 What would the entry point be? The specific class in the Class Library that I am trying to debug inherits from System.Web.UI.WebControls.Image, and my breakpoint is in an override of the Render method. I would think the entry point would be the tag in the *.aspx file, but that obviously isn't right, since breakpoints aren't allowed in *.aspx files. Where do I need to put the additional breakpoint? Thanks. -- Nathan Sokalski njsokalski(a)hotmail.com http://www.nathansokalski.com/ "Scott M." <s-mar(a)nospam.nospam> wrote in message news:uc5U0PLvKHA.4308(a)TK2MSFTNGP05.phx.gbl... > > "Nathan Sokalski" <njsokalski(a)hotmail.com> wrote in message > news:4D3BF4D3-752A-46DE-965E-A27B527F74B8(a)microsoft.com... >>I have two projects in the same Solution, one of which is a Web >>Application, the other of which is a Class Library. When debugging, if I >>put a breakpoint in the Web Application, it stops there when it should, >>but the debugger refuses to stop at the breakpoints in the Class Library. >>Is there something special I need to do when debugging a Class Library >>while using it in a Web Application? Thanks. > > Yes, place another breakpoint in the Class Library code at whatever the > entry points are. > > -Scott >
From: Mr. Arnold on 5 Mar 2010 18:42 Nathan Sokalski wrote: > I have two projects in the same Solution, one of which is a Web > Application, the other of which is a Class Library. When debugging, if I > put a breakpoint in the Web Application, it stops there when it should, > but the debugger refuses to stop at the breakpoints in the Class > Library. Is there something special I need to do when debugging a Class > Library while using it in a Web Application? Thanks. You can break at the line in the codebehind file that calls the methods in the classlib project. You single step into the project's method and from there it should stop at a breakpoint that has been set.
From: Nathan Sokalski on 5 Mar 2010 18:56
The Class Library is a library of controls, so there is no line in the codebehind that calls it, because it is called from the *.aspx file as controls. -- Nathan Sokalski njsokalski(a)hotmail.com http://www.nathansokalski.com/ "Mr. Arnold" <Arnold(a)Arnold.com> wrote in message news:uNijT2LvKHA.4908(a)TK2MSFTNGP06.phx.gbl... > Nathan Sokalski wrote: >> I have two projects in the same Solution, one of which is a Web >> Application, the other of which is a Class Library. When debugging, if I >> put a breakpoint in the Web Application, it stops there when it should, >> but the debugger refuses to stop at the breakpoints in the Class Library. >> Is there something special I need to do when debugging a Class Library >> while using it in a Web Application? Thanks. > > You can break at the line in the codebehind file that calls the methods in > the classlib project. You single step into the project's method and from > there it should stop at a breakpoint that has been set. |