Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25493] Does the iOS debugger use the same protocol as the Android debugger?

GitHub Issuen/a
TypeStory
PriorityNone
StatusClosed
ResolutionDone
Resolution Date2018-02-04T09:21:20.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterAminul Islam
AssigneeUnknown
Created2017-11-09T15:53:51.000+0000
Updated2018-08-06T17:34:51.000+0000

Description

Hi, What I want to know is if the protocol being used by the Studio Debugging Perspective is the same when the target is Android and when the target is iOS. I am not asking about how to debug an app, but rather technical details about how debugging are being implemented for the different platforms. I already know that on Android, when "--debug-host" is specified, the app is debuggable using the v8-debugger-protocol. What I want to know is if libti_ios_debugger implements the same protocol or a different one. Thanks

Comments

  1. Christopher Williams 2017-11-10

    Short answer: no, and "it's complicated". Longer answer: **iOS**: With SDK 6.0+ we introduced a new debugger for iOS when using JSCore (and not our TiJSCore fork) that uses the webkit inspector protocol (see https://github.com/WebKit/webkit/tree/master/Source/JavaScriptCore/inspector/protocol). So If you use SDk 6.x and have the use-jscore-framework tag set to true in your tiapp.xml it'll use that. With SDK 7.0 JSCore will be the default, so unless you use-jscore-framework tag set to false, it'll use the new debugger by default. Prior to SDK 6.0 and on TiJSCore, we use proprietary protocol. It's deprecated (as is TiJSCore). **Android**: With SDK 7.0 we're moving to using the v8 inspector protocol: https://chromedevtools.github.io/debugger-protocol-viewer/v8/ Prior to SDK 7.0 we used our own proprietary protocol (that matched the old iOS one). It's deprecated.
  2. Eric Merriman 2018-08-06

    Closed as completed. If this is in error, please reopen.

JSON Source