Prev | Current Page 739 | Next

Rob Cameron and Dale Michalk

"Pro ASP.NET 3.5 Server Controls and AJAX Components"

For example, to see if a custom designer renders the correct design-time HTML, you can
create a custom designer class, apply the Designer attribute to the server control, recompile,
and then flip to the test page hosting the desired server control to get a thumbs-up/thumbsdown
judgment.
To fully debug design-time code with breakpoints, stepping through code, and so on, you
must start up a second instance of Visual Studio and open the same project in the second instance
of Visual Studio. Next, open the design-time code??”for example, RepeaterDesigner??”and set the
desired breakpoints in one instance of Visual Studio. In the instance of Visual Studio with
574 CHAPTER 11 ?–  DESIGN-TIME SU PPORT
RepeaterDesigner opened, select the Debug ??¤ Processes menu item to display the Processes
dialog box. Listed there is the other instance of devenv.exe, the filename for Visual Studio.
Then, you can either double-click devenv.exe or select devenv.exe and click Attach to
display the Attach to Process dialog box. In this box, you just check Common Language Runtime.
You should generally do this unless you have a need to select the other debugging program
types. This speeds things up a bit. Next, click OK and then Close. You should now see the debug
toolbar open with the Break All and Stop Debugging buttons enabled.


Pages:
727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751