node-java
node-java copied to clipboard
debug java classes
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.
I'm also interested in approaches to debugging compiled Java classes called via node-java.
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.