Library easymacro.py

Tools

For debug

INFO_DEBUG

Show info debug, show in message box.

import easymacro as app

def info():
    app.msgbox(INFO_DEBUG)
    return

Show in shell.

import easymacro as app

def info():
    app.debug(INFO_DEBUG)
    return

Log error

Show error message in shell.

import easymacro as app

def error():
    msg = 'My error 500'
    app.error(msg)
    return

Log debug

Show debug message in shell.

import easymacro as app

def error():
    msg = 'Verify this data...'
    app.debug(msg)
    return

Log info

Show info message in shell.

import easymacro as app

def error():
    msg = 'Start process...'
    app.info(msg)
    return

Call MRI

MRI is the better extension for debug any object in LibreOffice.

import easymacro as app

def error():
    obj = app.active
    app.mri(obj)
    return