Debug a .NET applet

  • Thread starter Thread starter MarcuEusebiu
  • Start date Start date
M

MarcuEusebiu

Hello...
I have a Windows Forms UserControl in a ClassLibrary and I use this
UserControl as an applet in IE. Both WebApplication and UserControl
are in C#.NET 2.0. The UC has a button with a handler on it`s click
event.
I import the UserControl in a ASPX page using the <object> tag.
How can I debug into the UC when I click the UC button?

Thanks
 
In this type of deployment scenario, your control is being hosted in Internet
Explorer in the client browser, not on the server where it would be visible
to the Visual Studio.NET debugger.
Peter
 
Yes, that is correct, you should be able to attach the debugger to Internet
Explorer.
It's not fun though.
Peter
 
Thanks for the answer. I know it isn't fun, but it's usefull.. :)
If I try that mechanism in VS2005, and I set a breakpoint,
VisualStudio says that it will hit it... but it dosen't...
Anyway... I've made a "debug" by writing some messages in EventLog.
 
Back
Top