Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Custom Control Debugging - Design Time!

Reply
Thread Tools

Custom Control Debugging - Design Time!

 
 
Gary K
Guest
Posts: n/a
 
      06-08-2005
Greetings & Salutations,

I have already scanned the posts for my problem & have found a couple that
deal with problems that have the exact same symptoms as mine, however the
solutions do not work for me.

I am trying to debug a web custom control. (Sorry did I just hear you groan?)

I am using VS2003 and have setup two projects in the same solution, one
being the web control library, and the other being an ASP.NET web application
(for testing of the controls).

I have added a project reference to the web application for the controls &
created three controls in the library. One control is fully functional and is
a simple composite control. One control is still under development but is in
a 'dormant' state, (ie, it won't do anything, but it is kind enough to
function like an empty read-only label control), this control is never used
at this stage.

The third control is a template control (though it is NOT data bound) and
because it is pre-alpha I have put the control, template container and
designer classes all in the one source file. (I don't think it will make a
difference, but being MS I thought I'd mention it)

In the solutions mentioned in a couple of posts an MVP has mentioned that
this project setup should allow me to set breakpoints in my control & debug
in design time.

Unfortunately, I can set as many debug breakpoints in the designer class as
I want and the IDE simply ignores them all. I get the feeling that the IDE
does not do ANYTHING related to debugging as I cannot even get Debug.Write to
work (I get absolutely no output anywhere, and I even ended up opening as
many 'View' windows as I could(Output/CommandWindow/etc)).

Has someone come up with a workable procedure for custom control design-time
debugging? Where would I be able to find references to such 'Help' media? Or
have I made a big booboo somewhere?

Thank you.
 
Reply With Quote
 
 
 
 
Tom
Guest
Posts: n/a
 
      06-08-2005
I had a similar problem and found a useful solution here :

http://msdn2.microsoft.com/library/5...us,vs.80).aspx

Although it's related to debug Windows Forms Controls, it applies also for
WebControls.

Regards,
Tom


 
Reply With Quote
 
 
 
 
Gary K
Guest
Posts: n/a
 
      06-09-2005
Thank you Tom, works a treat. It's a bit roundabout though isn't it?
Hopefully things will improve in this area in the next couple of versions.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Error Creating Control" when creating a custom control (Design Time). Can't see tooltip message. Ravi Ambros Wallau ASP .Net Web Controls 0 06-01-2005 02:36 PM
"Error Creating Control" when creating a custom control (Design Time). Can't see tooltip message. Ravi Ambros Wallau ASP .Net 0 06-01-2005 02:36 PM
ControlDesigner not invoked on custom control when control is rendered within another custom control Matt Sokol ASP .Net Building Controls 2 08-07-2003 07:13 AM
Using Table control in a custom composite control. Control does not render properly in design time. jb_in_marietta@yahoo.com ASP .Net Building Controls 1 07-02-2003 08:05 AM
Using Table control in a custom composite control. Control does not render properly in design time. jb_in_marietta@yahoo.com ASP .Net 0 07-01-2003 09:26 PM



Advertisments