Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 654
Rohan Sampat Avatar asked Jul 30 '17 07:07

Rohan Sampat


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.

like image 85
Rick Avatar answered Oct 03 '22 07:10

Rick


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

like image 21
Amar Yadav Avatar answered Oct 03 '22 06:10

Amar Yadav