nativescript-community / nativescript-vscode-extension

A Visual Studio Code Extension for NativeScript
https://www.nativescript.org/visual-studio-code
Apache License 2.0
82 stars 32 forks source link

Unable to debug when project's app directory is renamed #205

Closed rosen-vladimirov closed 6 years ago

rosen-vladimirov commented 6 years ago

NativeScript CLI allows you to change the name of the app directory in the project by adding a nsconfig.json with the following content:

{
    "appPath": "src"
}

After that you can safely rename the app dir to src and CLI will build the project and livesync and debug will still work. However, debugging in VSCode is not working as the mapping between files on device and the local paths is not correct.

This breaks debugging of newly created NativeScript Angular projects (tns create myapp --ng), which already have nsconfig.json and have src dir instead of app.

rosen-vladimirov commented 6 years ago

Scenarios that should be tested on both iOS and Android: