Primitive.FodyDotnetTrace
0.4.0
dotnet add package Primitive.FodyDotnetTrace --version 0.4.0
NuGet\Install-Package Primitive.FodyDotnetTrace -Version 0.4.0
<PackageReference Include="Primitive.FodyDotnetTrace" Version="0.4.0" />
paket add Primitive.FodyDotnetTrace --version 0.4.0
#r "nuget: Primitive.FodyDotnetTrace, 0.4.0"
// Install Primitive.FodyDotnetTrace as a Cake Addin #addin nuget:?package=Primitive.FodyDotnetTrace&version=0.4.0 // Install Primitive.FodyDotnetTrace as a Cake Tool #tool nuget:?package=Primitive.FodyDotnetTrace&version=0.4.0
FodyDotnetTrace
This code will trace method entry and exit, threads, and object instances for a .NET project. It is designed to be used with the Primitive runtime.
Installation
Copy FodyWeavers.xml, FodyWeavers.xsd, and FodyWeavers.dll to the project directory that will be traced.
Adding the PrimitiveTracker.cs file to a project will trace all methods to a db that will output to the execution directory since it has the [assembly: PrimitiveTracker] annotation.
This file is on a separate branch so that it is not built into the tracer dll.
References to the MethodBoundaryAspect.Fody library and System.Data.Sqlite are required.
Adding an Environment.Exit(0) or a OnMainFormClosing() may be necessary to ensure that the db is written to disk.
Finally, it's still necessary to run the output through runtime-to-unity before viewing in Primitive.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. |
-
net9.0
- MethodBoundaryAspect.Fody (>= 2.0.149)
- System.Data.SQLite (>= 1.0.119)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.