Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Java Debuggers #481

Open
nybbs2003 opened this issue Oct 18, 2016 · 5 comments
Open

Support Java Debuggers #481

nybbs2003 opened this issue Oct 18, 2016 · 5 comments

Comments

@nybbs2003
Copy link

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?

@jimfb
Copy link

jimfb commented Oct 18, 2016

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.

@nybbs2003
Copy link
Author

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

@jimfb
Copy link

jimfb commented Oct 18, 2016

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.

@jvilk
Copy link
Member

jvilk commented Oct 19, 2016

@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.

@nybbs2003
Copy link
Author

@jvilk Thanks!

@jvilk jvilk added the question label Oct 25, 2016
@jvilk jvilk changed the title How to debug in browser Support Java Debuggers Oct 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants