Debugging design-time features of custom control

  • Thread starter Thread starter Roman
  • Start date Start date
R

Roman

Hi,
I am creating a custom control with some desing-time features.
How can I test/debug the control, especially its design-time functionality?

Thanks in advance,
Roman
 
Can't remember the article (its either MSDN Magazine or CodeProject)
but you basically invoke the IDE itself when debugging

1) put the ctl in a dll

2) Under the Project's Properties / Configuration Properties / Start
Action,

check the Start External Program and put in DevEnv.exe (afaik,
you will need the whole path)

put the solution name as the Command Line Argument
put the solution folder as the Wroking directory


Now when you hit F5, a new instance of DevEnv starts up with you
current project.
You can place breakpoints et al. in the original instance and step
through the code.


The articles make it clearer (nice pictures and all ;)


hth,
Alan.
 
Alan,
Thank you very much. This is exactly what I was looking for.

Best Regards,
Roman
 
Back
Top