Tracing

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

Methods

Assert

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

Assert

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

Assert

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

Assert

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

DebugLogAddEntry

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

DebugLogBeginBlock

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

DebugLogEndBlock

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