node-java icon indicating copy to clipboard operation
node-java copied to clipboard

debug java classes

Open hag007 opened this issue 10 years ago • 2 comments

Hi.

Is there a way to debug java classes/JARS triggered via node-java utilities?

For example, say I want to debug a java function - MyClassBL.intCall() - in Eclipse, once I've triggered it in Node.js:

var MyClassBL = java.import("mp.BL"); var intBL = MyClassBL.intCallSync();

Thanks in advance.

hag007 avatar Aug 12 '15 22:08 hag007

I'm also interested in approaches to debugging compiled Java classes called via node-java.

KClough avatar Dec 12 '18 20:12 KClough

I guess it should be enough to pass a debug option (like -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:40348,suspend=y,server=n) to the JVM (using java.options.push()) and then attach the java debugger.

jzakrzewski avatar Dec 13 '18 06:12 jzakrzewski