Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with NativeScript

You're reading from   Getting Started with NativeScript Explore the possibility of building truly native, cross-platform mobile applications using your JavaScript skill—NativeScript!

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher
ISBN-13 9781785888656
Length 168 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Nathanael J. Anderson Nathanael J. Anderson
Author Profile Icon Nathanael J. Anderson
Nathanael J. Anderson
Arrow right icon
View More author details
Toc

Debugging your application


NativeScript uses the built-in Chrome debugging tools to allow you to debug your application on Android and a similar set of tools in Safari for iOS. You can start the debugging in one of two ways. You can start the debugging when you launch your application using nativescript debug android --debug-brk [--device / --emulator / --geny] to launch your application with the debugger active. The second way is if your application is currently running, you can use nativescript debug ios --start [ --device / --emulator / --geny] to connect to an already running application.

Note

NativeScript currently requires a working Internet connection for debugging. It also requires Chrome to be installed to debug Android applications.

Once you have launched the debug tools, you should see something like this on Android:

This is the Node inspector that you can use in Chrome to debug your web pages and even node apps. NativeScript is leveraging the same code that Google wrote for Chrome...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime