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

[TIMOB-23628] (6_0_X) Android: Unable to debug an application with run-on-main-thread set to true #8429

Merged
merged 2 commits into from Sep 27, 2016

Conversation

sgtcoolguy
Copy link
Contributor

Cherry-pick of #8428

JIRA: https://jira.appcelerator.org/browse/TIMOB-23628

Description:
These are bug fixes for the debugger agent I had to add to our Android SDK wen we updated V8. Please note that merging this does not mean we should resolve the ticket above

The notable changes are:

I fixed up how we parse the incoming messages from Studio (or other client) debuggers. We could end up in a state where we mangled the messages and caused an OutOfMemoryException.
I forced a debug breakpoint at the very beginning of the app's lifecycle. This is so that we can wait until the debugger connects and does it's setup (like sending over all the breakpoints) before we launch into app.js - otherwise we couldn't ever hit "early" breakpoints in the app's execution. Now we can hit a breakpoint as early as the first line of app.js (or technically even in our own bootstrapping code).

…due to messy reading code. Simplified reading of debugger messages.
…debugger client connects it can set breakpoints and options and then resume (so we can actually hit breakpoints as early as the first line of app.js)
@sgtcoolguy sgtcoolguy added this to the 6.0.0 milestone Sep 23, 2016
@garymathews garymathews merged commit 6dee06c into tidev:6_0_X Sep 27, 2016
@sgtcoolguy sgtcoolguy deleted the TIMOB-23628-6_0_X branch December 5, 2016 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants