# Tracing class

Namespace: [Grasshopper](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public sealed class Tracing
```

Class that provides useful static methods for debugging, tracing and messaging.

## Methods

- [Assert](https://developer.rhino3d.com/api/gh1/type/grasshopper.tracing/assert.md): (4 overloads, static) Display a typical assert dialog with stack information.
- [DebugLogAddEntry](https://developer.rhino3d.com/api/gh1/type/grasshopper.tracing/debuglogaddentry.md): (static) Add a message to the debug log. If the debug log doesn't exist yet, it will be created. This function will only work if the Grasshopper window exists. This method is threadsafe.
- [DebugLogBeginBlock](https://developer.rhino3d.com/api/gh1/type/grasshopper.tracing/debuglogbeginblock.md): (static) Start a new block in the debug data. You must end all your own blocks. This function will only work if the Grasshopper window exists. This method is threadsafe.
- [DebugLogEndBlock](https://developer.rhino3d.com/api/gh1/type/grasshopper.tracing/debuglogendblock.md): (static) Start a new block in the debug data. You must end all your own blocks. This function will only work if the Grasshopper window exists. This method is threadsafe.
