Skip to content

cop_debug

Kamran Wali edited this page Dec 2, 2024 · 5 revisions

Class Name: COP_Debug

Debugger to help print debugs.

Description

cop_debug is a static class that helps with printing different type of debugs. Since this is a static class you can call the methods directly.

Tutorials

Methods

Return Type Name
void print_script( Object object, String message )
void print_node( Node object, String message )
void print_resource( Resource object, String message )
void print_object( Object object, String message )
String get_script_log( Object object, String message )
String get_node_log( Node object, String message )
String get_resource_log( Resource object, String message )
String get_object_log( Object object, String message )

Method Descriptions

void print_script ( Object object, String message )

This method prints the log message and the script name.

Note: If the object provided does NOT have a script or is NOT a script then the method will print an error.


void print_node ( Node object, String message )

This method prints the log message and the node name.


void print_resource ( Resource object, String message )

This method prints the log message and the resource name.

Note: If the object provided is NOT a Resource then the method will print an error.


void print_object ( Object object, String message )

This method prints the log message and the object name and ID


String get_script_log ( Object object, String message )

This method returns the script log.


String get_node_log ( Node object, String message )

This method returns the Node log.


String get_resource_log ( Resource object, String message )

This method returns the resource log.


String get_object_log ( Object object, String message )

This method returns the object log.


Clone this wiki locally