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

Debugging not working with --bundle #222

Closed DimitarTachev closed 5 years ago

DimitarTachev commented 5 years ago

Environment

To Reproduce 1) tns create newApp --js 2) cd newApp 3) code . 4) Add "tnsArgs": ["--bundle"] in the Launch on Android task. 5) Run the Launch on Android task. 6) Set a breakpoint. 7) The breakpoint is grayed out and marked as unverified (most probably the bundle js map is not handled properly).

Expected behavior You should be able to debug the NativeScript apps in VSCode when the --bundle or --hmr flags are passed.

coding-style-review commented 5 years ago

This issue was introduced by the commit from here: https://github.com/NativeScript/nativescript-vscode-extension/issues/213

That commit solves the debug extension issue for the angular template, but adds other issues for the rest of the templates.

18clans commented 5 years ago

Was this ever fixed? I'm still having this same issue.

DimitarTachev commented 5 years ago

@18clans, it was fixed in the new version of the launch.json. If you are using an old project, check your ./.vscode/launch.json file and delete the sourceMapPathOverridesproperty.

xdubx commented 5 years ago

Nop still not working. v.0.9.0 with nativscript +vue

DimitarTachev commented 5 years ago

@xdubx Maybe there are some source maps issues in your app (e.g. the devtool property is not configured properly - here's the proper setup).

I suggest you update nativescript-dev-webpack to the latest version and execute its update scripts with ./node_modules/.bin/update-ns-webpack --configs in order to get the latest webpack.config.

If this doesn't help, please open a new issue following the issue template in order to allow us investigate it further.

xdubx commented 5 years ago

update the webpack config works for me thx for the fast reply.