Hi Andre and Oliver,
Thanks for the fast reply! They were indeed helpful but the problem was
otherwise. Debugging is working with my settings.
I used sysinternals process monitor to capture file access and i figured out
that no java vm is loaded if my extension is installed within open office. It
seams that there is an error in my extension: I have a new (empty) tool panel
in open office but it seams it is just there because of the *.xcu files.
If I bootstrap open office from Java (like in TestMinimalComponent) I am able
to debug! :-)
thanks for the help!
greets, tobi
On 21.08.2013 13:20, Andre Fischer wrote:
On 21.08.2013 12:02, tobias haubold wrote:
Hi everybody,
I'm currently dive into extension development for open office using
Java. I did some successful experiments based on the
'MinimalComponent' example and extended it a bit based on the
'CustomPanel' example by adapting the c++ sources. After
installation I see a new tool panel so it looks promising.
Now I wonder how i can debug my java extension. I managed to set
the parameters in the Tools -> Options -> OpenOffice -> Java
dialog:
-agentlib:jdwp=transport=dt_socket,server=y,address=localhost:8000
I guess they are the correct parameters - when I install my
extension using 'unopkg add ...' command the execution stops until
i connect with a debugger.
When I start open office with my extension installed I am unable to
connect with a debugger as Java doesn't listen for remote
connections. Did I miss something? I read somewhere that it's not
possible to debug Java extensions when more than one extension
using Java. Does this limitation still exists?
I am NOT using NetBeans with Open Office Plugin. I use Eclipse and
Open Office 4.0.0. I do NOT use the Eclipse Plug-In for Open Office
Extension Development. Does anybody have experience debugging Java
extensions (either using NetBeans or Eclipse)?
Maybe these links help: General setup to use Eclipse to remote debug
OpenOffice: http://www.brain-dump.org/blog/entry/66
This wiki page mentions the hanging Office after installing an
extension, and how to fix that:
http://wiki.openoffice.org/wiki/Java_and_OpenOffice.org
-Andre
greets and thanks in advance, tobi
On 21.08.2013 15:39, Oliver Brinzing wrote:
Hi Tobias.
if you run "unopkg add" from command line, be sure oo is not running
at this time (including quickstart)
-agentlib:jdwp=transport=dt_socket,server=y,address=localhost:8000
for me this will work:
-agentlib:jdwp=transport=dt_socket,server=y,address=localhost:8000,suspend=n
after setting this param restart oo and check listening mode for example
with "TCPView" or "netstat"
if oo is in listening mode, you should be able to connect from
eclipse
Regards
Oliver
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]