Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 1.21 KB

debugging-tips.md

File metadata and controls

24 lines (15 loc) · 1.21 KB

Debugging Tips

Diagnosing Design-Time Builds

See Diagnostic Design-Time Builds.

CPS Tracing

When you build the solution either in Visual Studio or via the command-line, a trace listener is hooked up to output CPS tracing to the Debug category of the Output Window under the RoslynDev Visual Studio instance. You can use this to diagnose lots of issues, such as failing rules or missing snapshots.

You can increase the verbosity of what is output to the window by changing the verbosity level in ManagedProjectSystemPackage.DebuggingTraceListener.

Capabilities

You can see the active capabilities for a given project, by turning on the DiagnoseCapabilities capability:

  <ItemGroup>
    <ProjectCapability Include="DiagnoseCapabilities"/>
  </ItemGroup>

This will add a node in Solution Explorer that will list the current 'active' capabilities:

image