[TIMOB-4163] Android: Debugger: Manual suspend is not implemented
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Reopened |
Resolution | Unresolved |
Affected Version/s | Release 1.7.0 |
Fix Version/s | n/a |
Components | Android |
Labels | RTN, debugger, step_into, suspend |
Reporter | Natalie Huynh |
Assignee | Ingo Muschenetz |
Created | 2011-05-20T13:08:58.000+0000 |
Updated | 2020-01-09T19:51:38.000+0000 |
Description
Try to manually suspend a thread (by hitting the "Pause" button) when debugging an application with TiStudio. The app should suspend once Javascript code is executed again.
Moving to critical since it's MUST FIX
Hrmm.. "Step into" seems to be enabled correctly for me here. The breakpoint is supposed to be set on the line where the function "cfa()" is called, correct? When the debugger suspends, I go directly into that function when I click on "step in"
To test this: Debug an android project in TiStudio, make sure the project is targeting the MobileSDK w/ these fixes. Set a breakpoint anywhere, and make sure it hits once. Once it hits, resume, and then you can click on any thread under the App, and hit the manual "Suspend" (Pause) button. The next time the app goes back to javascript code, the debugger should suspend.
Bill's test case with a tabbed application:
Steps: 1) Put a breakpoint in "clicker()", which is an event handler that gets run when you click on the "click first" label. 2) Run the app in debug mode. 3) When the app has opened, click the "click first" label. A breakpoint should be hit. 4) Resume the app. 5) Click Pause (suspend). 6) Click the bottom label titled "click later". Expected: Suspend in clicker2(), an event handler for the click event of the second (bottom) label. Actual: Doesn't suspend.
Tested with 1.7.2.v20110706211037 with Debugger test and the attached test case.
Reopening bug. Bug still persists on: SDK build: 1.8.0.1 Runtime: V8 Titanium Studio, build: 1.0.7.201112281340 OS: Mac OS X Lion, Windows 7, Linux 10.04 Note: Bug does NOT persist on Rhino when running the attached test case and test case 1023 from [Debugger Test Plan](https://wiki.appcelerator.org/display/tp/Debugger+Test+Plan).