expressappframework-117344-debugging-testing-and-error-handling-debug-collect-and-analyze-the-diagnostic-information.md
XAF applications support collecting diagnostic information using common approaches applicable to any .NET applications. This topic lists Visual Studio settings required to collect error information and describes how to analyze this information.
Before debugging an error, modify the following Visual Studio settings:
Click Tools | Options… to invoke the Options dialog. In the left-hand panel, choose the Debugging | General category and disable the Just My Code option.
Enable Common Language Runtime Exceptions in the Exception Settings window. If this window is hidden, click Debug | Windows | Exception Settings in Visual Studio’s menu (see Managing Exceptions with the Debugger).
You can now run your application and reproduce the error. Open the Call Stack window and view the routines that are currently in the stack.
You can use the Developer Tools to trace client-side errors and get more information about them. Refer to the following help topic for more details: Diagnose Client-Side Errors.
See Also
Debug DevExpress .NET Source Code with PDB Symbols
How to enable script debugging