Cerebro application has built-in functionality to simplify testing and debugging for your Python modules. It is called from Python Debugging Panel. The panel is disabled by default. It can be enabled by the Main menu/View/Python debug tools checkbox.
Python debug tools panel:
disables all plugins in Cerebro
— restarts Python and all its modules without application restart. After the restart all the changes in modules are applied, menu items are regenerated (menu.init_menu() function is called and logon is being handled (logon.logon() function is called).
Note
You don’t need to close the application to debug logoff handler (logoff.logoff() function), just log off without closing the software - Main menu/Cerebro/Log off.
reloads module automatically (slows down the application);
– generates a test event twice ( cerebro.events.Event.EVENT_TEST ) to check event system.
First call - no errors
Second call - error
Python is restarted before generating an event. You can write some code for API learning and testing in the handler of this event. It will be executed every time you press this button.
opens the plugin management window for development.
enabling development plugins disables all custom plugins and enables plugins that are added to the list of development plugins. Accordingly, disabling, on the contrary, disables plugins for development and enables custom plugins.
opens the console output information from Python-modules (intended for Windows only).
Under Linux and Mac OS X you need to launch Cerebro from a console (terminal) to view the debugging information. In this case the console (terminal) will display application debugging information and messages from Python modules.
Under Windows OS you need to open Python output console to view the messages from Python modules and open the Cargador interface to view application debugging information (Main menu/Tools/Cargador Interface).