Primitive.FodyDotnetTrace 0.4.0

dotnet add package Primitive.FodyDotnetTrace --version 0.4.0                
NuGet\Install-Package Primitive.FodyDotnetTrace -Version 0.4.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Primitive.FodyDotnetTrace" Version="0.4.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Primitive.FodyDotnetTrace --version 0.4.0                
#r "nuget: Primitive.FodyDotnetTrace, 0.4.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 Compatible and additional computed target framework versions.
.NET net9.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.4.0 68 11/21/2024
0.1.0 62 11/21/2024