Skip to content
kelsa-pi edited this page Aug 6, 2017 · 24 revisions
  • Start LibreOffice from the command line

    soffice "--accept=socket,host=localhost,port=2002;urp;StarOffice.ComponentContext" --writer --norestore

    /opt/libreofficedev5.4/program/soffice "--accept=socket,host=localhost,port=2002;urp;StarOffice.ComponentContext" --writer --norestore

  • Start Dash-like offline documentation browser

  • Open your project in editor

    Set breakpoints

  • Set breakpoints in the source code

    Left click in the very small column just after the line number's column.

    Set breakpoints

  • Run source code in the editor

    Menu Run -> Run file as script

  • Debugging

    Move to next line or select property or method in workspace

    Use the toolbar buttons to move to the next line.

    Debug toolbar

    More information about debugging with Pyzo you can find here

  • Examine property or method

    With double clik on property or method drill futher

    Drill

    or find more information with right clik on property or method

    Context

  • Set argument

    Write argument ("Standard") and double click on method (getByName)

    Context

  • Insert code in editor

    Pres icon to insert code at cursor position

    Context

    Inserted code in the script

    initial_target = document.BasicLibraries
    item = initial_target.getByName("Standard")
    
Clone this wiki locally