# GH_DebugDescriptionWriter class

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

```cs
public class GH_DebugDescriptionWriter
```

Writer object used to create debug logs.

## Constructors

- [GH_DebugDescriptionWriter](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-debugdescriptionwriter/ctor.md)

## Properties

- [Depth](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-debugdescriptionwriter/depth.md): Gets the depth of the current writer. Depth is represented by whitespace in front of each line.

## Methods

- [CloseBlock](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-debugdescriptionwriter/closeblock.md): Close the current block and decrease the depth by 1.
- [CreateBlock](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-debugdescriptionwriter/createblock.md): Begin a new block. This will increase the depth by 1. You must call CloseBlock() if you call this function.
- [CreateLog](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-debugdescriptionwriter/createlog.md): Get a single string that represents the entire log so far.
- [WriteLine](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-debugdescriptionwriter/writeline.md): (3 overloads) Write a new blank line to the log.
- [WriteLogToFile](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-debugdescriptionwriter/writelogtofile.md): Write the log to a text file.
