| |
|
| |
How to Debug Designer ProblemsExplains how to debug problems with the Visual Studio designer. Designer ExecutionThe designer (the WYSIWYG part of the form IDE) actually compiles and runs the paint code of custom controls when you a) build, and b) open a a form. That's how it knows how to display them.This execution occurs with the App's Base Directory set to the location of devenv.exe on your hard drive (e.g. c:/program files/Microsoft Visual Studio 8/Common7/IDE) Resource FilesOne of the implications of this is that if anything called by your app's paint code is looking for resource files or things from its base directory (for example, a config file or bitmap), they will not be found unless you put them in that directory.Debugging the DesignerYou can debug the designer using the built-in debugger. However, you must change the "Start Application" to devenv.exe rather than your own app.
The debugger will actually launch a new instance of Visual Studio. When you load your project in that new instance and open one of the forms, the form draw code will execute and you will hit your debugger breakpoints. | |
|
All content copyright 1996-2008 by Linda Naughton O'Meara unless otherwise noted.
Shadowrun is a copyright and trademark of WizKids, LLC.
Earthdawn is a copyright and trademark of FASA Corporation.
Crimson Skies is a copyright and trademark of Microsoft Corporation.
Babylon 5 is a copyright and trademark of Time Warner Entertainment.
Battlestar Galactica is a copyright of Sci Fi / Universal.
Any use of characters, names, places, etc. from these systems is done with the greatest respect for their creators, and is not intended as a challenge to any copyrights or trademarks.
| |