Skip to content
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

[TISTUD-8942] Android Debugger: Some breakpoints not hit if "Resume" is done anytime during debug #860

Merged
merged 3 commits into from
Dec 7, 2017

Conversation

sgtcoolguy
Copy link
Contributor

@sgtcoolguy sgtcoolguy commented Dec 7, 2017

JIRA: https://jira.appcelerator.org/browse/TISTUD-8942

Description
This boiled down to "some breakpoints were never honored in alloy apps".

After a lot of digging to isolate where the root cause was, I was able to validate the the debugger/SDK seemed fine, as a built alloy app could be debugged on the generated sources just fine.
Classic apps were OK, so it had to be alloy-specific.

I then dug into alloy's source mapping, since it's really a two-pass operation. First, we generate an initial file and our own source map. Then we hand that off to babel and it's supposed to transform the file more and generate the final source mapping. Great, right? Except babel produces intermittently invalid source maps: babel/babel#6008

The workaround here is to avoid trying to feed source maps to babel or consume the ones they generate, but to have it "retainLines" so our original source map is still correct/valid for line mappings (it may get wonky with columns, but Studio is incapable of handling sub-line precision right now anyways).

@sgtcoolguy sgtcoolguy requested a review from feons December 7, 2017 20:13
@feons
Copy link
Contributor

feons commented Dec 7, 2017

Approved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants