Debugging design-time features of custom control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Roman

    #1

    Debugging design-time features of custom control

    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


  • AlanT

    #2
    Re: Debugging design-time features of custom control



    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.

    Comment

    • Roman

      #3
      Re: Debugging design-time features of custom control

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

      Best Regards,
      Roman


      "AlanT" <alantolan@user s.com> wrote in message
      news:1141246836 .636438.141180@ v46g2000cwv.goo glegroups.com.. .[color=blue]
      >
      >
      > 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.
      >[/color]


      Comment

      Working...