【问题标题】:VSCode Native script - Don't recognise breakpointsVSCode Native 脚本 - 不识别断点
【发布时间】:2021-02-22 19:24:02
【问题描述】:

我在带有 nativescript 扩展名的 vscode 中使用原生脚本 Angular。 当我尝试调试应用程序 (ios) 时,它不会在断点处停止,并且编辑器无法识别断点。

在调试控制台中,我可以看到以下消息“尝试从路径 '/Users/raulvaldoleiros/vscode-workspaces/ns-ng-course/webpack.config.js' 获取 webpack.config.js 文件时出错。错误是:TypeError: host.onUnRecoverableConfigFileDiagnostic is not a function"

我还卸载并安装了 webpack,在参数中添加了 --debug-brk,执行了 ns migrate,从头开始创建了一个新项目,但似乎没有任何效果。

launch.json

 {
        "name": "Launch on iOS", 
        "type": "nativescript",
        "request": "launch",
        "platform": "ios",
        "appRoot": "${workspaceRoot}",
        "sourceMaps": true,
        "watch": true
    }

包.json

{
"name": "@nativescript/template-hello-world-ng",
  "main": "main.js",
  "version": "7.0.9",
  "author": "NativeScript Team <oss@nativescript.org>",
  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "publishConfig": {
    "access": "public"
  },
  "keywords": [
    "nativescript",
    "mobile",
    "angular",
    "{N}",
    "template"
  ],
  "repository": "<fill-your-repository-here>",
  "bugs": {
    "url": "https://github.com/NativeScript/NativeScript/issues"
  },
  "dependencies": {
    "@angular/animations": "~11.0.0",
    "@angular/common": "~11.0.0",
    "@angular/compiler": "~11.0.0",
    "@angular/core": "~11.0.0",
    "@angular/forms": "~11.0.0",
    "@angular/platform-browser": "~11.0.0",
    "@angular/platform-browser-dynamic": "~11.0.0",
    "@angular/router": "~11.0.0",
    "@nativescript/angular": "~11.0.0",
    "@nativescript/core": "~7.1.0",
    "@nativescript/schematics": "^11.0.0",
    "@nativescript/theme": "~3.0.0",
    "@nativescript/webpack": "3.0.0",
    "@schematics/angular": "^11.0.0",
    "project-helpers": "^0.4.0",
    "reflect-metadata": "~0.1.12",
    "rxjs": "^6.6.0",
    "tslint": "^6.1.3",
    "zone.js": "~0.11.1"
  },
  "devDependencies": {
    "@angular/cli": "^11.0.0",
    "@angular/compiler-cli": "~11.0.0",
    "@nativescript/android": "7.0.1",
    "@nativescript/ios": "7.2.0",
    "@nativescript/types": "~7.0.0",
    "@ngtools/webpack": "~11.0.0",
    "typescript": "~4.0.0"
  },
  "private": "true",
  "readme": "NativeScript Application"
}

【问题讨论】:

标签: visual-studio-code nativescript angular2-nativescript vscode-debugger nativescript-angular


【解决方案1】:
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-09-21
  • 1970-01-01
  • 2020-05-18
  • 1970-01-01
  • 2019-12-12
  • 2021-11-05
  • 1970-01-01
相关资源
最近更新 更多