debugging in design time

  • Thread starter Thread starter fragget
  • Start date Start date
Hi Fragget.

I was able to do this by manuly opening a new DevEnv and attaching to the
other one through the process Window in the debug menu.

Hope this help

Gary
 
I was able to do this by manuly opening a new DevEnv and attaching to the
other one through the process Window in the debug menu.

One really cool way I found to do design-time debugging is this... define
a new user control that contains a ListView. Implement a TraceListener in
the same class and add any output that you receive to the ListView. Then
place the control somewhere on your main window form. If any of your
components need to do design-time debugging (such as in InitLayout()) or if
they generate exceptions during design-time operations, the messages are
captured by the control and believe it or not, are actually displayed in
the design-time representation of the control!!! Its not great if there
is a LOT of output, but I would imagine (haven't tested) that you could do
other things such as log the messages to a file.

-mbray
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top