Monday, October 22, 2007

First blog. Debugging aspx custom controls in VS2005.

Wow! This is my very first Blog.

This is so usefull that I needed to capture it since I might never find it again.

Here's how to debug a .net aspx custom control in real time



Here's how i debug ALL my custom controls in real time.

In Order to debug a Custom Control you need to Start ANOTHER copy of Visual Studio along side your existing one,and pointing it to a test website.

This can be done byGoing To The Controls Project Properties and Selecting The Debug Tab then set the start action to `Start External Program` and set the box next to it to the location of devenv.exe from the correct folder of program files.i am using orcas beta2 here and this path is: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe

Now set the Command Line Arguments to: /Command File.OpenWebsite TheTestingWebSite.sln

Now The Final Step Is To Enter The FULL Path of Your SOLUTION FILE in the Working Directory text box.

Just press F5 to start your debugging Adventure.