how to debug nativescript app in chrome browser and view output in chrome

Viewed 7947

Hello I m new to NativeScript, as per the docs available on NativeScript site, I had created a demo app with NativeSript + Angular and deployed that on device but for debugging i want it to run on web browser like chrome to get the view of app and debug. As per the docs i m able to debug it in chrome but I can get the view of app to run in chrome. Is there some way to do that.

2 Answers

Here you go.

tns debug ios --chrome

You will then want to pay close attention to your terminal and find the following line.

To start debugging, open the following URL in Chrome:

enter image description here

Open up your browser and copy and paste that path and you will get access to the developer tools.

Enter following Command in terminal

tns debug android

check terminal and find following URL

chrome-devtools://devtools/bundled/inspector.html?experiments=true&ws=localhost:40000

copy above url and paste in crome and start debugging

Related