Tracing

public sealed class Tracing
Class that provides useful static methods for debugging, tracing and messaging.

Methods

Assert

#
Display a typical assert dialog with stack information.
public static void Assert(
assert_id,
ID of assert message. Every assert must have a unique ID so individual messages can be ignored.
exception
Exception object to harvest further information from.
)

Assert

#
Display a typical assert dialog with stack information.
public static void Assert(
assert_id,
ID of assert message. Every assert must have a unique ID so individual messages can be ignored.
message,
The text to display as the assert message.
exception
Exception object to harvest further information from.
)

Assert

#
Display a typical assert dialog with stack information.
public static void Assert(
assert_id,
ID of assert message. Every assert must have a unique ID so individual messages can be ignored.
message
The text to display as the assert message.
)

Assert

#
Display a typical ASSERT dialog with stack information.
public static void Assert(
assert_id
ID of assert message. Every assert must have a unique ID so individual messages can be ignored.
)

DebugLogAddEntry

#
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.
public static void DebugLogAddEntry(
message
Message to post.
)

DebugLogBeginBlock

#
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.
public static void DebugLogBeginBlock(
name
Name of block
)

DebugLogEndBlock

#
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.
public static void DebugLogEndBlock()