DebugTrace 2.1.0

dotnet add package DebugTrace --version 2.1.0
NuGet\Install-Package DebugTrace -Version 2.1.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="DebugTrace" Version="2.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DebugTrace --version 2.1.0
#r "nuget: DebugTrace, 2.1.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 DebugTrace as a Cake Addin
#addin nuget:?package=DebugTrace&version=2.1.0

// Install DebugTrace as a Cake Tool
#tool nuget:?package=DebugTrace&version=2.1.0

DebugTrace-net

Japanese

DebugTrace-net is a library that outputs trace logs when debugging .NET programs, and can be used with programs using .NET Core 3.1 or later.

1. Features

  • Automatically outputs invoker's class name, method name, source file name and line number.
  • Automatically indents the log with nesting methods and objects.
  • Automatically breaks at the output of values.
  • Automatically output logs when changing threads.
  • Uses reflection to output objects of classes that do not implement ToString method.
  • You can customize the output content in DebugTrace.properties.
  • There are no dependent libraries at run time if you output to the console.
  • You can use the following logging library.

2. Install

Search DebugTrace packege on NuGet and install it.
If you output logs using log4net or NLog, install DebugTrace.Log4net or DebugTrace.NLog package.

3. How to use

Do the following for debug target and related methods.

  1. Insert Trace.Enter() at the beginning of methods.
  2. Insert Trace.Leave() at the end of methods or just before the return statements.
  3. Insert Trace.Print("foo", foo) to output arguments, local variables and return value to the log if necessary.

Details...

9. License

The MIT License (MIT)

10. Release Notes

DebugTrace-net 2.1.0 - November 13, 2022

  • Print methods now returns the value or the message of the argument.
  • Now prints the runtime .NET version in the DbeugTrace-net startup log.

Related packages:

DebugTrace Package Related Package
DebugTrace.Log4net 2.1.0 log4net 2.0.15
DebugTrace.NLog 2.1.0 NLog 4.7.15

All Release Notes...

<div align="center" style="color:#6699EE">(C) 2018 Masato Kokubo</div>

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on DebugTrace:

Package Downloads
DebugTrace.NLog

Bridge library that uses NLog for DebugTrace-net output.

DebugTrace.Log4net

Bridge library that uses log4net for DebugTrace-net output.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.0 653 11/13/2022
2.0.3 391 8/13/2021
2.0.2 623 7/12/2020
2.0.1 501 5/16/2020
2.0.0 731 4/26/2020
1.6.1 693 3/30/2019
1.6.0 642 3/24/2019
1.5.4 709 2/9/2019
1.5.3 713 2/2/2019
1.5.2 691 1/28/2019
1.5.1 719 12/15/2018
1.5.0 962 10/28/2018
1.4.4 769 10/20/2018
1.4.3 820 10/13/2018
1.4.2 867 8/23/2018
1.4.1 1,011 7/12/2018
1.4.0 906 6/9/2018
1.3.0 1,098 5/26/2018
1.2.0 1,015 5/19/2018
1.1.1 1,007 4/24/2018
1.1.0 1,055 4/23/2018
1.0.1 1,078 4/15/2018
1.0.0 1,023 4/8/2018
0.6.3-beta 853 4/2/2018
0.6.2-beta 943 3/21/2018
0.6.1-beta 826 3/19/2018
0.6.0-beta 852 3/18/2018
0.5.1-beta 885 3/6/2018
0.5.0-beta 937 3/5/2018
0.4.0-beta 855 3/3/2018
0.3.0-beta 850 3/3/2018
0.2.0-beta 872 2/28/2018
0.1.1-beta 827 2/26/2018
0.1.0-beta 823 2/24/2018

Print methods now returns the value or the message of the argument.
Now prints the runtime .NET version in the DbeugTrace-net startup log.