Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Tue Jan 13, 2009 5:12 am Post subject: INFO: Using debugging to track potential problems. |
|
|
Many times, certain functionality of one of the controls of the Shell MegaPack.Net does not work due to coding issues. One way to determine the potential cause is to see if any exceptions are being raised/thrown. To do this, :
1. Under Project settings--> Debug, set Start Action to 'Start External Program' and specify your executable program ("c:\MyApplication.exe")
2.Under Debug Menu -->Exceptions, check 'Common Language Runtime Exceptions' and click OK.
3. Start the project under debug mode using F5. Your application will start running. If this does not work, start the application externally and then attach to your application using the 'Attach...' menu option from the 'Debug' menu in Visual Studio.
4. In Visual Studio, switch to the 'Output' tab where all diagnostic messages including exception information is displayed.
5. Browse your application and try to execute the functionality of the control which is not working. If any exceptions are raised/thrown, information about the same will be shown in the 'Output' window. This information can be used to diagnose the possible cause of the problem, or the entire contents of the 'Output' window can be sent to technical support as a supporting document. |
|