Export (0) Print
Expand All

How to: Debug a Designer Load Failure

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

This topic shows how to debug your XAML file if it does not load in the WPF and Silverlight Designer For more information, see Troubleshooting WPF and Silverlight Designer Load Failures.

To debug a designer load failure

  1. Open a second instance of Visual Studio.

  2. From the Debug menu, choose Attach to Process.

    The Attach To Process dialog box opens.

  3. In the Available Processes section, select the instance of devenv.exe that is loading your XAML and click Attach.

    The Visual Studio debugger attaches to the selected devenv.exe instance.

  4. From the Debug menu, choose Exceptions.

    The Exceptions dialog box opens.

  5. In the Break when exception is list, find the Common Language Runtime Exceptions name, and then check the Thrown check box.

  6. Click OK.

  7. In the first Visual Studio instance that you are debugging, reload the XAML file.

    The second instance of Visual Studio opens and displays the load exception.

    Note Note

    You can click Stop Debugging in the second instance of Visual Studio and the first instance keeps running.

Show:
© 2014 Microsoft