debugging in design time

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

    debugging in design time

    hi-

    i am trying to debug some design-time compenents. i have
    instructions from this article.

    Learn with interactive lessons and technical documentation, earn professional development hours and certifications, and connect with the community.

    TimeControls/default.aspx

    however, when i get to this part

    "Set Start Application to Devenv.exe path\devenv.exe "

    the field is ready only and i can't type in it.
    any clue what i am missing here?

    thanks - fg
  • Gary van der Merwe

    #2
    Re: debugging in design time

    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

    "fragget" <fragget@home.c om> wrote in message
    news:01d301c38c f2$645ac370$a30 1280a@phx.gbl.. .[color=blue]
    > hi-
    >
    > i am trying to debug some design-time compenents. i have
    > instructions from this article.
    >
    > http://msdn.microsoft.com/msdnmag/issues/03/04/Design-
    > TimeControls/default.aspx
    >
    > however, when i get to this part
    >
    > "Set Start Application to Devenv.exe path\devenv.exe "
    >
    > the field is ready only and i can't type in it.
    > any clue what i am missing here?
    >
    > thanks - fg[/color]


    Comment

    • Michael Bray

      #3
      Re: debugging in design time

      "Gary van der Merwe" <garyvdm@hotmai l.com> wrote in news:#ewMhtWjDH A.2080
      @TK2MSFTNGP10.p hx.gbl:
      [color=blue]
      > 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.[/color]

      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

      Comment

      Working...