Skip to content
This repository was archived by the owner on Nov 1, 2020. It is now read-only.
This repository was archived by the owner on Nov 1, 2020. It is now read-only.

Cannot debug graph visualisation #8043

@kant2002

Description

@kant2002

I attempt to make a stab at the marshalling null values for COM, but stuck with producing correct IL. I decide that I'm smart guy and can enable debugging of the DependencyGraph. I'm not sure if this was correct decision, but that's not root cause of the issue which I encounter.

So I start follow Documentation\how-to-debug-compiler-dependency-analysis.md

  1. I setup csproj and include <IlcGenerateDgmlFile>true</IlcGenerateDgmlFile>
  2. I configure to use locally built version of CoreRT.
  3. Launch VS as admin and open ILCompiler-DependencyGraph-Viewer.sln
  4. Launch dotnet publish as admin
  5. Launch ILCompiler-DependencyGraph-Viewer inside VS

events was not there.
Under debugger, line below return false into restarted variable.

var restarted = session.EnableProvider("Microsoft-ILCompiler-DependencyGraph");

I suspect that this is related to enabling ETW somehow, or maybe I miss some other step?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions