VSC调试器刚开始出现奇怪的问题。试用版本1.23、1.24、1.25。
从Nativescript模板创建了一个新应用程序,以隔离任何项目配置问题。
运行调试器时,请更改并保存文件。调试器控制台显示以下内容
Executing before-shouldPrepare hook from /home/bear/dev/my-drawer-app-ts/hooks/before-shouldPrepare/nativescript-dev-webpack.js
Executing before-prepare hook from /home/bear/dev/my-drawer-app-ts/hooks/before-prepare/nativescript-dev-sass.js
Hook skipped because either bundling or livesync is in progress.
Executing before-prepare hook from /home/bear/dev/my-drawer-app-ts/hooks/before-prepare/nativescript-dev-typescript.js
Hook skipped because either bundling or livesync is in progress.
Preparing project...
Executing before-prepareJSApp hook from /home/bear/dev/my-drawer-app-ts/hooks/before-prepareJSApp/nativescript-dev-webpack.js
Project successfully prepared (Android)
Executing after-prepare hook from /home/bear/dev/my-drawer-app-ts/hooks/after-prepare/nativescript-dev-sass.js
Executing after-prepare hook from /home/bear/dev/my-drawer-app-ts/hooks/after-prepare/nativescript-dev-webpack.js
Successfully transferred home-page.xml
但是应用程序未在仿真器中加载,VSC中的调试器工具栏消失了。这是launch.json中的部分
{
"name": "Launch on Android",
"type": "nativescript",
"request": "launch",
"platform": "android",
"appRoot": "${workspaceRoot}",
"watch": true,
"stopOnEntry": true,
"noDebug": false,
"sourceMaps": true
}
任何想法或建议将不胜感激。