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

use DebugHandler or V8DebugServer error __j2v8_Debug is "undefined" #561

Open
firmlyshell opened this issue Aug 27, 2021 · 1 comment
Open

Comments

@firmlyshell
Copy link

I use j2v8:6.0.0@aar j2v8:6.1.0@aar j2v8:6.2.1@aar is alway error. but use j2v8_macosx_x86_64:4.6.0 is ok.

idea is android studio 4.2.1

code :
------run in v8 thread----------------------
V8DebugServer.configureV8ForDebugging();
v8Runtime = V8.createV8Runtime();
DebugHandler debugHandler = new DebugHandler(v8Runtime);
//V8DebugServer server = new V8DebugServer(v8Runtime,9088,true)

I want to use chrome DevTools debug javascript code。or can I use other tools to debug javascript code。
I try use j2v8-Debuger but is can not work。

@ahmadov
Copy link
Contributor

ahmadov commented Sep 7, 2021

Hello @firmlyshell,

V8DebugServer is deprecated and it's dead-code. I plan to remove it. The latest version of J2V8 supports the new V8 inspector API for debugging: https://github.com/eclipsesource/J2V8/tree/master/src/main/java/com/eclipsesource/v8/inspector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants