Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add note about Simulator

Android developers can debug using Chrome DevTools with Titanium SDK 7.0.x and later. Searching for iOS Debugging? Here you go!

Debugging with Chrome DevTools

...

  1. Launch the app/build on the device or a simulator. Note: if using a device, make sure that it is connected by an USB cable before debugging. If you encounter any issues with device discoverability, please ensure that the USB cable is directly connected, not through a USB hub.

    Sample via command-line: 

    appc run -p android --debug-host /127.0.0.1:51388
  2. Launch Chrome. Note you should be signed into Chrome. Also noteworthy, debugging may not work in Incognito or Guest modes
  3. Open DevTools by going to More Tools  >  Developer Tools  from Chrome's Main Menu.
  4. For devices: 
    1. From the 
     
    1. Main Menu 
     
    1. (the three vertical dots in the far right corner), select 
     
    1. More Tools
     
    1.  > 
     
    1. Remote devices
     
    1. In DevTools, click the Settings tab if another tab is showing.
    2. Ensure that Discover USB devices is enabled.
  5. For simulators:
    1. After building, the console will log the required debugger information, e.g.
Code Block
titleConsole
languagebash
[WARN]  JSDebugger: (main) [13,555] Debugger listening on ws://127.0.0.1:51388/6b8d130f-5a6c-7623-a760-ffc319010448
[WARN]  JSDebugger: (main) [1,556] To connect Chrome DevTools, open Chrome to chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:51388/6b8d130f-5a6c-7623-a760-ffc319010448

 

Refer to Google's Get Started with Remote Debugging Android Devices tutorial for further details on how to debug with Chrome DevTools.

...