-
-
Notifications
You must be signed in to change notification settings - Fork 197
tns ios debug #358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
For testing purposes you may provide Then you can connect to localhost 8080 using WebSocket client and simulate Inspector if you manage to reverse engineer the debugging protocol. |
This is some really great documentation! I don't mean to be a noob, but I'm running into an issue: I'm trying to emulate the app: tns ios debug --start --emulator Unknown command 'ios'. Use 'NativeScript help' for help. Any ideas? :/ tns version: 0.9.4 |
Hi @jsgandalf , |
As of 1.0.1: |
@jsgandalf Fixed the 'ios debug' to 'debug ios' in the docs. |
Awesome!! Thanks! On Wed, May 13, 2015 at 1:25 AM, Panayot Cankov [email protected]
|
Integrate the ios debugging with the CLI.
All the commands must be executed within the tns project folder, or with path to a project. They require the bundle id to setup the communication.
Debug --debug-brk on Device
tns debug ios --debug-brk
Prepare, build, deploy, run the app. Start the inspector in Safari. Attach the inspector before any JavaScript is executed on iOS device. If you have a
debugger;
as first statement in thebootstrap.js
the inspector should brake on it before any JS being executed. The terminal will block forwarding traffic over the USB cable.Debug --start on Device
tns debug ios --start
Start the inspector in Safari. Attach to an already running app. The terminal will block forwarding traffic over the USB cable.
Debug --debug-brk on Emulator
tns debug ios --debug-brk --emulator
Prepare, build, debploy, run the app on an already running emulator or try to start one. Start the inspector in Safari. Attach the inspector before any JavaScript is executed on iOS device. If you have a
debugger;
as first statement in thebootstrap.js
the inspector should brake on it before any JS being executed.Debug --start on Emulator
tns debug ios --start --emulator
Start the inspector in Safari. Attach to an already running app in emulator.
The text was updated successfully, but these errors were encountered: