Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26813] iOS: Debugging using Webkit inspector not exposing the right javaScript context

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterRichard Lustemberg
AssigneeEric Merriman
Created2019-01-23T10:24:44.000+0000
Updated2019-05-23T15:36:37.000+0000

Description

I've noticed that once Hyperloop is enabled in a project, only the js class stubs appear available in the Webkit debugger. I think this issue is critical for Hyperloop adoption as without debugging any advantage of using Hyperloop instead of native modules is lost.

Attachments

FileDateSize
Screenshot 2019-01-24 at 10.18.46.png2019-01-24T09:23:12.000+0000410458

Comments

  1. Sharif AbuDarda 2019-01-23

    Hello [~rlustemberg], can you share a sample project that demonstrates the issue that you mentioned? We will look into it. Thanks.
  2. Richard Lustemberg 2019-01-24

    Hi Sharif, I've uploaded a screenshot of the debugger and here I'm pasting the repo of an example app. The hyperloop examples app should exhibit the same behaviour, but I cannot test because of an issue I have with hyperloop+cocoapods [https://github.com/rlustemberg/hyperloop_debugging](https://github.com/rlustemberg/hyperloop_debugging)
  3. Richard Lustemberg 2019-01-24

    I've renamed the bug. It's actually an sdk issue starting on 7.5.x. Debugging works correctly on 7.4.2.GA
  4. Richard Lustemberg 2019-03-25

    I can verify that the issue still exists on sdk 8.0.0.GA. It's not possible to debug using the Webkit Inspector. Only sources for ti.main.js are exposed
  5. Hans Knöchel 2019-03-28

    This seems legit and has likely been caused by the bootstrap changes of 7.5.0 (cc [~jquick]).
  6. Richard Lustemberg 2019-03-28

    @hknoechel , I was about to run a diff between 7.4 & 7.5 to try to figure this out. I'm very eager to start using sdk 8 but can't lose the ability to debug.

JSON Source