Closed zongxiaomi closed 3 years ago
@zongxiaomi have you tried demo project for version 0.1.2 - is it working for you?
As far as I see, the latest tested version for 0.1.2
was j2v8 v4.8.2
.
Thus if demo app is working for you - you have 2 options:
4.8.2
if update is not an option for you.Yes, I am trying to upgrade to version 6.xx. I read the source code. This demo needs a single thread to work, and it also needs to be executed in the same thread, but my V8 needs to work on the main thread. What is better Is the way to make the debuger work on the main thread?
I implemented ExecutorServices
with Handler
and called the crateDebuggableV8Runtime
method of V8Debugger
,but it didn’t work. Here I will talk about my environment. I used J2v8
and TypedScript
to implement JS rendering native code. Some components are implemented natively. I don’t know if It is not related to this.
Excuse me, I know that j2v8-debug and j2v8 must work in the same thread. Does it have to work in asynchronous threads? Can it work in the main thread
A/libc: Fatal signal 5 (SIGTRAP), code 1 (TRAP_BRKPT), fault addr 0x72833aa8c8 in tid 28166 (.test.demo), pid 28166 (.test.demo)
In the end, I still put the debug process on the main thread to do it, but the above error is always reported when I setBreakPointUrl. What is the reason for this?
thank you a lot . i fix the problem ,but also , i found some bugs. i will new a pr at soon.
@zongxiaomi indeed using 6.x branch is better choice. I am glad, that you made it working.
Also thanks for finding bugs, any PRs are very welcome. Btw, if you you think that we should add any additional information to documentation - feel free to suggest it in another PR as well.
Hello, I would like to ask a question. The version number of j2v8-debuger is 0.1.3, and the version of j2v8 is 5.0.103. I use the
getOrCreateV8Debugger
andinitializeWithV8DebuggerInMainThread
methods to initialize, but I always fail to debug my method, and there are breakpoints and breakpoints. The information can also be displayed in logcatplease help me