How to: Configure Visual Studio to Debug a XAML Browser Application
PresentationHost.exe manages the execution of XBAPs and provides facilities for debugging.
Configuring Visual Studio
To configure Microsoft Visual Studio 2005 to debug an XBAP
With a project selected in Solution Explorer, on the Project menu, click Properties.
In the Project Designer, click the Debug tab.
In the Start Action section, select Start external program and enter the following:
C:\WINDOWS\System32\PresentationHost.exe
In the Start Options section, enter the following into the Command line arguments text box:
-debug filename
The filename value for the -debug parameter is the .xbap filename; for example:
-debug c:\example.xbap
Note
This is the default configuration for solutions that are created with the Visual Studio 2005 XAML Browser Application (WPF) project template.
See Also
Concepts
Windows Presentation Foundation Host (PresentationHost.exe)
How to: Configure Visual Studio to Debug a XAML Browser Application to Call a Web Service