DebugTrace 4.0.0
dotnet add package DebugTrace --version 4.0.0
NuGet\Install-Package DebugTrace -Version 4.0.0
<PackageReference Include="DebugTrace" Version="4.0.0" />
<PackageVersion Include="DebugTrace" Version="4.0.0" />
<PackageReference Include="DebugTrace" />
paket add DebugTrace --version 4.0.0
#r "nuget: DebugTrace, 4.0.0"
#addin nuget:?package=DebugTrace&version=4.0.0
#tool nuget:?package=DebugTrace&version=4.0.0
DebugTrace-net
DebugTrace-net is a library that outputs trace logs when debugging .NET programs, and can be used with programs using .NET 6 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.
- Insert
Trace.Enter()
at the beginning of methods. - Insert
Trace.Leave()
at the end of methods or just before thereturn
statements. - Insert
Trace.Print("foo", foo)
to output arguments, local variables and return value to the log if necessary.
8. License
9.Change Log
<div align="center" style="color:#6699EE">(C) 2018 Masato Kokubo</div>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- 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 |
---|---|---|
4.0.0 | 92 | 6/28/2025 |
3.0.0 | 186 | 6/23/2024 |
2.1.0 | 732 | 11/13/2022 |
2.0.3 | 473 | 8/13/2021 |
2.0.2 | 712 | 7/12/2020 |
2.0.1 | 580 | 5/16/2020 |
2.0.0 | 850 | 4/26/2020 |
1.6.1 | 795 | 3/30/2019 |
1.6.0 | 742 | 3/24/2019 |
1.5.4 | 806 | 2/9/2019 |
1.5.3 | 810 | 2/2/2019 |
1.5.2 | 790 | 1/28/2019 |
1.5.1 | 821 | 12/15/2018 |
1.5.0 | 1,097 | 10/28/2018 |
1.4.4 | 882 | 10/20/2018 |
1.4.3 | 935 | 10/13/2018 |
1.4.2 | 991 | 8/23/2018 |
1.4.1 | 1,268 | 7/12/2018 |
1.4.0 | 1,089 | 6/9/2018 |
1.3.0 | 1,360 | 5/26/2018 |
1.2.0 | 1,277 | 5/19/2018 |
1.1.1 | 1,276 | 4/24/2018 |
1.1.0 | 1,321 | 4/23/2018 |
1.0.1 | 1,333 | 4/15/2018 |
1.0.0 | 1,293 | 4/8/2018 |
0.6.3-beta | 1,103 | 4/2/2018 |
0.6.2-beta | 1,200 | 3/21/2018 |
0.6.1-beta | 1,084 | 3/19/2018 |
0.6.0-beta | 1,111 | 3/18/2018 |
0.5.1-beta | 1,143 | 3/6/2018 |
0.5.0-beta | 1,194 | 3/5/2018 |
0.4.0-beta | 1,112 | 3/3/2018 |
0.3.0-beta | 1,111 | 3/3/2018 |
0.2.0-beta | 1,130 | 2/28/2018 |
0.1.1-beta | 1,074 | 2/26/2018 |
0.1.0-beta | 1,082 | 2/24/2018 |
Please Read CHANGELOG.md.