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
go to the predefined URL created by the ns command line (devtools://devtools/bundled/inspector.html?ws=localhost:40000).
you should get the WebSocket disconnected message from chrome devtools.
Expected behavior
Chrome devtools should break on the breakpoint.
Sample project
main.ts
import Vue from 'nativescript-vue';
import Main from './components/main.vue';
debugger;
Vue.config.silent = false;
new Vue({
render: (h) => h('frame', [h(Main)]),
}).$start();
Additional context
I've set on the main.ts the breakpoint by using the 'debugger' (Debug CLI) option. After that I've run the command specified for debugging, I couldn't connect (at least that was what chrome devtools was showing). Some couple of tries later I've said enough and started to debug the android runtime by using one of your guidelines regarding debugging starting scripts in android-runtime (Debug android runtime), found the problem with the ShouldBreak method (it couldn't handle the scope with the isolate_) and also with getDocument method (The document is empty as it isn't loaded yet, I think) . To be honest, I'm not a specialist regarding C++ and Java, I'm experienced mostly in C# and some of the JavaScript.
The text was updated successfully, but these errors were encountered:
This partially reverts the fix from #1641 as it ends up never calling `m_backend->getDocument`.
This may bring back an issue from #1640 - though was unable to reproduce with latest everything.
Environment
Describe the bug
The system doesn't break on the 'debugger'' line when set on main.ts. and shows the message: 'can't connect through WebSocket'.
To Reproduce
Expected behavior
Sample project
Additional context
I've set on the main.ts the breakpoint by using the 'debugger' (Debug CLI) option. After that I've run the command specified for debugging, I couldn't connect (at least that was what chrome devtools was showing). Some couple of tries later I've said enough and started to debug the android runtime by using one of your guidelines regarding debugging starting scripts in android-runtime (Debug android runtime), found the problem with the ShouldBreak method (it couldn't handle the scope with the isolate_) and also with getDocument method (The document is empty as it isn't loaded yet, I think) . To be honest, I'm not a specialist regarding C++ and Java, I'm experienced mostly in C# and some of the JavaScript.
The text was updated successfully, but these errors were encountered: