[TIMOB-4986] iOS: Can't debug modules
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-02-06T17:43:46.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.5.0 |
Components | Tooling |
Labels | n/a |
Reporter | Jeff Haynie |
Assignee | Ingo Muschenetz |
Created | 2011-08-11T10:18:47.000+0000 |
Updated | 2017-03-24T20:52:47.000+0000 |
Description
It appears that you cannot debug into a Javascript module loaded with require.
The steps to reproduce are easy.
create a module named foo.js and save it in Resources
exports.foo = function()
{
return 'bar';
}
Then in app.js
var f = require('foo');
f.foo();
Place breakpoint on the 'return bar' and attempt to debug and you'll never get into that piece of code.
Most likely this is how we 'wrap and load' the exported code that prevents it from being debuggable.
My guess this bug also is the same on Android but I haven't verified that.
I think this one is no longer a problem. Please verify & close.
Fixed with the new debugger for 3.5.0
Closing ticket as fixed with reference to previous comments.