Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ffabreti/8fd551ed321d51d7f458 to your computer and use it in GitHub Desktop.
Save ffabreti/8fd551ed321d51d7f458 to your computer and use it in GitHub Desktop.
Debugging Titanium Android applications with node-inspector
Thanks to Stevo Perisic
Download the https://github.com/node-inspector/node-inspector using
$ npm install -g node-inspector
Than go to your titanium project folder and run:
$ node-inspector
after that in the same dir run:
JAVA_HOME=/usr/java/latest titanium build -f -p android -T emulator -I 7 -S HVGA --debug-host localhost:5858
in your browser open localhost:8080/debug?port=5858
and voila! You have the chrome inspector in your android titanium project!
notice:
titanium build "-I 7 -S HVGA" option tries to spawn avd named titanium_7_HVGA
@ffabreti
Copy link
Author

Great. Thanks, will give it a try!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment