class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS Object EngineDebugger
Exposes the internal debugger.

EngineDebugger handles the communication between the editor and the running game. It is active in the running game. Messages can be sent/received through it. It also manages the profilers.

void clear_breakpoints<>():void

Clears all breakpoints.

void debug<>( bool can_continue=true, can_continue:bool=true, bool is_error_breakpoint=false, is_error_breakpoint:bool=false, ):void

Starts a debug break in script execution, optionally specifying whether the program can continue based on can_continue and whether the break was due to a breakpoint.

int get_depth<>():int

Experimental: This method may be changed or removed in future versions.

Returns the current debug depth.

int get_lines_left<>():int

Experimental: This method may be changed or removed in future versions.

Returns the number of lines that remain.

bool has_capture<>( StringName name=, name:StringName=, ):bool

Returns true if a capture with the given name is present otherwise false.

bool has_profiler<>( StringName name=, name:StringName=, ):bool

Returns true if a profiler with the given name is present otherwise false.

void insert_breakpoint<>( int line=, line:int=, StringName source=, source:StringName=, ):void

Inserts a new breakpoint with the given source and line.

bool is_active<>():bool

Returns true if the debugger is active otherwise false.

bool is_breakpoint<>( int line=, line:int=, StringName source=, source:StringName=, ):bool

Returns true if the given source and line represent an existing breakpoint.

bool is_profiling<>( StringName name=, name:StringName=, ):bool

Returns true if a profiler with the given name is present and active otherwise false.

bool is_skipping_breakpoints<>():bool

Returns true if the debugger is skipping breakpoints otherwise false.

void line_poll<>():void

Forces a processing loop of debugger events. The purpose of this method is just processing events every now and then when the script might get too busy, so that bugs like infinite loops can be caught.

void profiler_add_frame_data<>( StringName name=, name:StringName=, Array data=, data:Array=, ):void

Calls the add callable of the profiler with given name and data.

void profiler_enable<>( StringName name=, name:StringName=, bool enable=, enable:bool=, Array arguments=[], arguments:Array=[], ):void

Calls the toggle callable of the profiler with given name and arguments. Enables/Disables the same profiler depending on enable argument.

void register_message_capture<>( StringName name=, name:StringName=, Callable callable=, callable:Callable=, ):void

Registers a message capture with given name. If name is "my_message" then messages starting with "my_message:" will be called with the given callable.

The callable must accept a message string and a data array as argument. The callable should return true if the message is recognized.

Note: The callable will receive the message with the prefix stripped, unlike EditorDebuggerPlugin._capture(). See the EditorDebuggerPlugin description for an example.

void register_profiler<>( StringName name=, name:StringName=, EngineProfiler profiler=, profiler:EngineProfiler=, ):void

Registers a profiler with the given name. See EngineProfiler for more information.

void remove_breakpoint<>( int line=, line:int=, StringName source=, source:StringName=, ):void

Removes a breakpoint with the given source and line.

void script_debug<>( ScriptLanguage language=, language:ScriptLanguage=, bool can_continue=true, can_continue:bool=true, bool is_error_breakpoint=false, is_error_breakpoint:bool=false, ):void

Starts a debug break in script execution, optionally specifying whether the program can continue based on can_continue and whether the break was due to a breakpoint.

void send_message<>( String message=, message:String=, Array data=, data:Array=, ):void

Sends a message with given message and data array.

void set_depth<>( int depth=, depth:int=, ):void

Experimental: This method may be changed or removed in future versions.

Sets the current debugging depth.

void set_lines_left<>( int lines=, lines:int=, ):void

Experimental: This method may be changed or removed in future versions.

Sets the current debugging lines that remain.

void unregister_message_capture<>( StringName name=, name:StringName=, ):void

Unregisters the message capture with given name.

void unregister_profiler<>( StringName name=, name:StringName=, ):void

Unregisters a profiler with given name.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...