User Tools

Site Tools


Sidebar

en:objects:debug

debug

Auxiliary object for managing script debugging

This object contains methods for managing the debug sections of humananatomy, display messages and notifications in the process of the script.It also contains methods that allow you to control the amount of memory used and periodically perform memory optimization operations as a result of memory leaks in the browser.In addition, there are additional methods that allow you to see the parameters of the currently running script, you can also Set your own handlers (hooks) for the 'Stop script' and 'Continue script execution'buttons.



working with lower tabs
Dialog messages
Getting information about the memory used by the application
Auxiliary




Working with lower tabs

open_tab – open a bookmark with the specified name
set_tab_content – add text to the bookmark
save_tab_content_to_file – save the contents of the debug panel to a file
get_tab_content – get the contents of the debug panel
clear_tab_content – clear the contents of the debug panel
close_tab – close the debug panel
set_encoding – set encoding
view_tab_as_text – change the bookmark display mode (as text or html)
close_tabs – close all debugging bookmarks



Dialog messages

message_box – dialog message
notification_box – display a notification



Getting information about the memory used by the application

get_cur_mem_size – get the current memory size used by the emulator
get_min_mem_size – get the minimum swap size
get_max_mem_size – get the maximum swap size
get_free_physical_mem_size – get the size of free physical memory on the machine
get_gui_resources – get the number of GUI resources used by the program
get_process_id – get the program's Process ID
optimize_memory – minimize the memory used by the program
get_cpu_usage – get cpu usage by the program



Auxiliary

set_hook – set an action to interrupt the script execution process via the interface
run_current_script – run the current script for execution
is_script_run – check whether the script is running
get_cur_script_path – get the path to the currently running script
get_cur_script_folder – get the folder path of the currently running script

en/objects/debug.txt · Last modified: 2020/11/12 21:16 (external edit)