[TIMOB-4989] Debugging does not work with apps that have modules
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-01-05T16:51:14.000+0000 |
Affected Version/s | Release 1.7.2 |
Fix Version/s | Sprint 2011-43, Release 1.8.0 |
Components | iOS |
Labels | dr-list, module_debugger, qe-testadded |
Reporter | Stephen Tramer |
Assignee | Stephen Tramer |
Created | 2011-08-11T16:38:24.000+0000 |
Updated | 2012-01-05T16:51:14.000+0000 |
Description
Reproduction steps, using any app:
- Install the ti.test module
- Change the tiapp.xml for the project to reference the ti.test module
- Set a breakpoint in app
- Debug, and trigger the breakpoint
RESULT:
- Breakpoint is not triggered
EXPECTED:
- Breakpoint is hit
The solution is that because when we load modules (or install to device) we automatically encode javascript into the binary. This prevents the debugger from looking up information (on the filesystem) about which JS is being executed, and furthermore, all the line numbers are going to be wrong anyway due to JS compacting for the encoding process.
So, we'll probably need to stop encoding local resources when you're just linking a module.
Attachments
This change had to be pulled out as it was not working on device.
Passed as expected on the iPhone Simulator. SDK: version=1.8.0 timestamp=08/26/11 14:53 githash=8e978eb...
This appears to be occurring again with both the iPhone 4.3 and 5 simulator. Tested with SDK 1.8.0v20110920000211 (version=1.8.0, timestamp=09/20/11 00:02, githash=b8e07c8...). I've attached the project and break points I was using. The app stays on the splash screen as expected, but debugger never connects and the variable values never appear. After a few seconds the simulator closes and the following appears in the console: [DEBUG] App Spec:
Unable to reproduce on master. This isn't a bug related to debugging modules, either - it is a separate bug.
Unable to reproduce in SDK 1.8.0.e69cc8f / TiStud 1.0.6.201110202348 / XCode 4.2 / iOS 5.0 SDK. Assuming previous fix is still good.
Closing bug. Verified fix on: OS: Mac OS X Lion Titanium Studio, build: 1.0.7.201112061404 SDK build: 1.8.0.1.v20111207151125 Device: iOS Simulator (5.0) Note to QE: Need modulization for modules, not debugging.
Open to update label