-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI:
NativeScript CLI: 7.0.8 - Cross-platform modules:
- Android Runtime:
7.0.0 - iOS Runtime: n/a
- Plugin(s):
- VSCode: 1.49.1
Here's my package.json (default for new project)
{
"name": "@nativescript/template-hello-world-ng",
"main": "main.js",
"version": "7.0.2",
"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"
},
"scripts": {
"ngcc": "ngcc --properties es2015 module main --first-only",
"postinstall": "npm run ngcc"
},
"dependencies": {
"@angular/animations": "~10.1.0",
"@angular/common": "~10.1.0",
"@angular/compiler": "~10.1.0",
"@angular/core": "~10.1.0",
"@angular/forms": "~10.1.0",
"@angular/platform-browser": "~10.1.0",
"@angular/platform-browser-dynamic": "~10.1.0",
"@angular/router": "~10.1.0",
"@nativescript/angular": "~10.1.0",
"@nativescript/core": "~7.0.0",
"@nativescript/theme": "~2.3.0",
"reflect-metadata": "~0.1.12",
"rxjs": "^6.6.0",
"zone.js": "~0.11.1"
},
"devDependencies": {
"@angular/compiler-cli": "~10.1.0",
"@nativescript/android": "7.0.0",
"@nativescript/types": "~7.0.0",
"@nativescript/webpack": "~3.0.0",
"@ngtools/webpack": "~10.1.0",
"typescript": "~3.9.0"
},
"private": "true",
"readme": "NativeScript Application"
}
Describe the bug
Breakpoint debugging no longer works when upgrading to NS7. I see the following when setting a breakpoint in VS code:

This was in a brand new sample app as well as after attempting to upgrade my current app.
To Reproduce
- Create a new nativescript app after upgrading the CLI.
ns create sampleapp --ng - Open sample app, add a launch config for nativescript and run the app.
- Once the app is running, set a breakpoint anywhere and test. Note that debugging does not work.
Expected behavior
We should be able to debug NS7 applications. By the way, debugging NS 6.X still works fine, even with the 7.X cli installed.
Sample project
Run ns create sampleapp --ng with the updated CLI.
Additional context
I originally posted this in the VS code extension repo, but I have closed it there as it does not seem that it should belong there. This is my biggest roadblock to upgrading to NS7 (aside from a couple of broken plugins).