Rohan Sampat
Rohan Sampat

Reputation: 970

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

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.

Upvotes: 8

Views: 8907

Answers (2)

Amar Yadav
Amar Yadav

Reputation: 172

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

Upvotes: 3

Rick
Rick

Reputation: 13500

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.

Upvotes: 16

Related Questions