Michael Meeks wrote:
>       Cool :-) incidentally, debugging python problems can be really nasty;
> there is some code in this commit:
> 
Since we chatted about that on LinuxTag - what I tend to do, is
install the extension (such that all auxiliary files are available),
start libreoffice with an extra

 --accept="uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext"

parameter, and then have

if __name__=="__main__":
    localContext = uno.getComponentContext()
    resolver = localContext.ServiceManager.createInstanceWithContext(
        "com.sun.star.bridge.UnoUrlResolver", localContext )
    ctx = resolver.resolve(
        "uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext")
    ctx.ServiceManager...

at the bottom of your Python - so you can run your extension
out-of-process, and use whatever debugging you prefer (interactive,
pdb, etc).

HTH,

-- Thorsten

Attachment: pgpZH2kJLmOzC.pgp
Description: PGP signature

_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to