Home All Groups Group Topic Archive Search About

Debugging design-time features of custom control

Author
1 Mar 2006 4:43 PM
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

Author
1 Mar 2006 9:00 PM
AlanT
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.
Author
2 Mar 2006 4:15 PM
Roman
Alan,
Thank you very much. This is exactly what I was looking for.

Best Regards,
Roman


Show quoteHide quote
"AlanT" <alanto***@users.com> wrote in message
news:1141246836.636438.141180@v46g2000cwv.googlegroups.com...
>
>
> 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.
>