Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Wed Mar 31, 2010 10:23 am Post subject: Running an application under the Visual Studio debugger |
|
|
Running an exe from Windows Explorer by double-clicking on it may not enable you to get the complete information about any exceptions or crashes that occur. To get this information, you need to run the exe from Visual Studio as follows:
1. Create a new Windows Forms or Console Application project.
2. In the Project Settings dialog --> Debug tab, set Start Action to 'Start External Program' and specify the app file which you want to debug
3. Under Debug menu --> Exceptions, check 'Common Language Runtime Exceptions' and click OK.
4. Start the project under debug mode using F5. The app will start running.
5. In Visual Studio, switch to the 'Output' tab where all diagnostic messages including exception information is displayed.
6. Run the app and execute the functionality that is crashing and which you want to diagnose. If any exception occurs, information about the same will be shown in the 'Output' window. At the same time, execution breaks into Visual Studio giving you the option to Debug. When 'Debug' option is clicked, the full stack trace is shown. The stack trace and the output window contents can be used to diagnose the possible cause of the problem, or can be sent to our technical support for diagnosis. |
|