You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to debug using Remote Chromium Javascript Debugger for Eclipse #2964
I tried to run the following remote debug configuration:
I got this error:
I'm using the following version:
Chromium plugin for eclipse:
Chromium JavaScript Remote Debugger 0.3.8.201210040400
Eclipse:
Eclipse IDE for Java Developers 4.4.1.20140925-1820
tns:
2.3.0
Can you please verify if it's still possible to debug android app using Eclipse?
Yeah that eclipse plugin is very outdated and is not working. We will be needing to update our documentation on that article. Consider using Visual Studio Code to debug {N} apps
I'm aware of the debug feature in vscode, I was investigating if we can use Chromium remote debugguer of eclipse or webstorm to debug a nativescript app.
What changes made to nativescript that broke debug with eclipse?
I guess V8 updates. But that time out error is like that for quite some time. Not sure what have changed on the client side. Never tried webstorm for that.
@blagoev the problem is that there's no V8-Version field in your debugger protocol output, which is expected by WebStorm (and probably Eclipse). We'll try to workaround that on our side, but I'm not sure what's the reason to remove it? E.g. Electron provides that field and attach works fine
Hey @denofevil, thanks for your observations! We are currently after enabling Chrome DevTools integration and I guess there will be some changes in our protocol with regards to that effort. In the mean time, if this missing V8-Version field is the issue could you please directly make a PR to the Android Runtime repo and we will make sure to accept it?
@atanasovg, thank you, we were able to workaround it on our side, but I think having this field would be better as we won't have to make assumptions about Node version. I'll take a look at it a little bit later
@denofevil
Currently we are using the old v8 API to work with the debugger. The {N} runtime just redirects messages back and forth between the client and the debugger back end. When we switch to the v8-inspector debugger then I guess these fields will come in as expected. Also there is work on the v8 side to move away from the newer JS debugger and to have native debugger. So this field is in big move right now
So write us anything you want us to help you with on this issue.
P.S. The v8-inspector bits will be present in v8 5.5 in late December.
Activity
blagoev commentedon Oct 27, 2016
Yeah that eclipse plugin is very outdated and is not working. We will be needing to update our documentation on that article. Consider using Visual Studio Code to debug {N} apps
iguissouma commentedon Oct 27, 2016
I'm aware of the debug feature in vscode, I was investigating if we can use Chromium remote debugguer of eclipse or webstorm to debug a nativescript app.
What changes made to nativescript that broke debug with eclipse?
blagoev commentedon Oct 28, 2016
I guess V8 updates. But that time out error is like that for quite some time. Not sure what have changed on the client side. Never tried webstorm for that.
denofevil commentedon Oct 31, 2016
@blagoev the problem is that there's no V8-Version field in your debugger protocol output, which is expected by WebStorm (and probably Eclipse). We'll try to workaround that on our side, but I'm not sure what's the reason to remove it? E.g. Electron provides that field and attach works fine
atanasovg commentedon Nov 8, 2016
Hey @denofevil, thanks for your observations! We are currently after enabling Chrome DevTools integration and I guess there will be some changes in our protocol with regards to that effort. In the mean time, if this missing V8-Version field is the issue could you please directly make a PR to the Android Runtime repo and we will make sure to accept it?
denofevil commentedon Nov 8, 2016
@atanasovg, thank you, we were able to workaround it on our side, but I think having this field would be better as we won't have to make assumptions about Node version. I'll take a look at it a little bit later
blagoev commentedon Nov 24, 2016
@denofevil
Currently we are using the old v8 API to work with the debugger. The {N} runtime just redirects messages back and forth between the client and the debugger back end. When we switch to the v8-inspector debugger then I guess these fields will come in as expected. Also there is work on the v8 side to move away from the newer JS debugger and to have native debugger. So this field is in big move right now
So write us anything you want us to help you with on this issue.
P.S. The v8-inspector bits will be present in v8 5.5 in late December.
enchev commentedon Nov 25, 2016
This issue was moved to NativeScript/android#639
lock commentedon Aug 29, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.