A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

918 B

Debugging the XAML Compiler

The Avalonia XAML compiler can be debugged by setting an MSBuild property which triggers a debugger launch during compilation. This allows you to step through the XAML compilation process and troubleshoot issues.

To enable XAML compiler debugging, set the AvaloniaXamlIlDebuggerLaunch MSBuild property to true in your project file:

<PropertyGroup>
  <AvaloniaXamlIlDebuggerLaunch>true</AvaloniaXamlIlDebuggerLaunch>
</PropertyGroup>

When this property is enabled, the XAML compiler will call Debugger.Launch() on startup, which prompts you to attach a debugger to the compiler process.

If you're working with the Sandbox project in the Avalonia repository, you can enable debugging by simply uncommenting the property line in the project file.