Tools for debug

Show info en shell

Only Linux

Sub Debug()
    'Create service
    util = createUnoService("org.universolibre.EasyDev")

    util.debug("Test debug")
End Sub
_images/img002.png

In Windows, you can open a new document Writer, save with name debug.odt and show info debug in this document.

_images/img003.png

Save info in file

Sub LogFile()

    util = createUnoService("org.universolibre.EasyDev")

    util.log("/home/USER/log.txt", util)

End Sub

Automatic add date and time.

2015-10-28 20:56:35 - EasyDev - <uno_component.EasyDev object at 0x7f96caf34438>
2015-10-28 20:56:41 - EasyDev - <uno_component.EasyDev object at 0x7f96caf34438>

Special msgbox

Show any data in msgbox like objects and arrays.

Sub MessageBox()
    util = createUnoService("org.universolibre.EasyDev")

    'Show info in message box
    util.msgbox("Debug data")

    'Show any data
    data = "This is string"
    util.msgbox(data)

    data = 12345
    util.msgbox(data)

    data = Array("Uno", 2)
    util.msgbox(data)

    util.msgbox(util)
End Sub

Call MRI

MRI is the best extension for introspeccion of objects for Apache OpenOffice and LibreOffice. Download and install.

Call from EasyDev.

Sub CallMRI()
    util = createUnoService("org.universolibre.EasyDev")

    'MRI is a great extension
    util.mri(util)
End Sub
_images/img004.png