O'Reilly logo

Developing Microsoft® .NET Controls with Microsoft Visual Basic® .NET by John Connell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Debugging the Control

When your control is embedded in the host, it is in a compiled format, so break-points don’t work. And, of course, any breakpoints set in the control are ignored at design time. With more complex controls, the inability to debug the control at run time can cause some serious headaches. An approach to use is to debug the IDE itself. Right-click the TextBoxValidator project in Solution Explorer and choose Properties on the shortcut menu. Under the Configuration Properties, select the Debugging page. Click the Start External Program option, and navigate to <Drive>:\ Program Files\ Microsoft Visual Studio .NET 2003\Common7\IDE\devenv.exe. (See Figure 6-35.) This will cause debugging to occur in the development environment when ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required