Page 1 of 1

Debugging a Plugin Using the Eclipse Workbench

Posted: Tue Dec 07, 2021 6:44 pm
by msambasiva
Hi,

Oxygen XML Editor 23.0

We are able to pass a parameter from Oxygen plugin to DITA-OT plugin in Oxygen XML Editor 23.0. But somehow, the same functionality is not working in Oxygen XML Author 23.0. I am able to debug a Oxygen Plugin successfully.

When we run the plugin in debug mode, Oxygen XML Editor is opening by default. But we need to debug the plugin in Oxygen XML Author. Is there any way to open Author by default with debugging process.

Thanks in advance,
Samba.

Re: Debugging a Plugin Using the Eclipse Workbench

Posted: Wed Dec 08, 2021 8:19 am
by Radu
Hi Samba,

I do not quite understand what the problem is, so the question is about starting Oxygen XML Author desktop directly from Eclipse, right?

The Java command line used to start XML Author looks like this:

Code: Select all

%OXYGEN_JAVA% -Xmx1g -XX:-OmitStackTraceInFastThrow -XX:SoftRefLRUPolicyMSPerMB=10 -Dsun.java2d.noddraw=true -Dsun.awt.nopixfmt=true -Dsun.java2d.dpiaware=true -Djava.net.preferIPv4Stack=true -Dsun.io.useCanonCaches=true -Dsun.io.useCanonPrefixCache=true -Dsun.awt.keepWorkingSetOnMinimize=true -Dcom.oxygenxml.app.descriptor=ro.sync.exml.AuthorFrameDescriptor -Dcom.oxygenxml.ApplicationDataFolder="%APPDATA%" -cp %CP% ro.sync.exml.Oxygen %*
So it passes this param "-Dcom.oxygenxml.app.descriptor=ro.sync.exml.AuthorFrameDescriptor" in order for Oxygen to know it should open as XML Author.

Regards,
Radu

Re: Debugging a Plugin Using the Eclipse Workbench

Posted: Wed Dec 08, 2021 11:50 am
by msambasiva
Thanks Radu. It's working. Able to open the Oxygen XML Author from Eclipse debugging process. -Dcom.oxygenxml.app.descriptor=ro.sync.exml.AuthorFrameDescriptor