How to debug code sharing


#1

I have followed code sharing topic:
https://docs.nativescript.org/angular/code-sharing/intro
It works fine.

But I can not debug the code.
I am using visual studio code.
Debug with: Attach on Ios, or launch Chrome is not working.
Any idea?


#2

Oke, I found the solution myself:
In the Launch.json use the tnsArgs.
Now it is working
Example:
{
“name”: “Launch on iOS”,
“type”: “nativescript”,
“request”: “launch”,
“platform”: “ios”,
“appRoot”: “{workspaceRoot}", "sourceMaps": true, "watch": true, "sourceMapPathOverrides": { "webpack:///*": "{workspaceRoot}/src/*”
},
“tnsArgs”:["–bundle"]

    },