doppio icon indicating copy to clipboard operation
doppio copied to clipboard

Support Java Debuggers

Open nybbs2003 opened this issue 9 years ago • 5 comments

As in Eclipse, I can put break points and hold on execution of a Jav program and see virable value, as well as doing do in Firefox for Javascript program. However, When running Java programs in browser, I lack of respective toolchains to do things alike. What shall I use to the same task?

nybbs2003 avatar Oct 18 '16 01:10 nybbs2003

In general, depending on what you're doing, it's usually easier to debug your Java program using the standard Java tools (eg. Eclipse), and then run it in doppio after having debugged it.

jimfb avatar Oct 18 '16 01:10 jimfb

@jimfb Yes, that is what to do for general programs. But what if I need to debug doppio-specfic problems?

nybbs2003 avatar Oct 18 '16 07:10 nybbs2003

Yeah, I agree, that's harder. AFAIK, the tooling for that doesn't exist at the moment. I just fall back to System.out.println() at that point. If you can separate the doppio-specific code from the rest of your application, you can minimize the time you spend debugging without a debugger.

jimfb avatar Oct 18 '16 13:10 jimfb

@jimfb is correct; the tooling does not exist right now. If someone wanted to add support for debuggers to DoppioJVM, the best approach would be to add support for the JVM debugging wire protocol to DoppioJVM. Then, you would be able to attach any existing JVM debugger to DoppioJVM. I've looked at the wire protocol before, and it looks very doable.

jvilk avatar Oct 19 '16 22:10 jvilk

@jvilk Thanks!

nybbs2003 avatar Oct 20 '16 05:10 nybbs2003