Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4986] iOS: Can't debug modules

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2015-02-06T17:43:46.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.5.0
ComponentsTooling
Labelsn/a
ReporterJeff Haynie
AssigneeIngo Muschenetz
Created2011-08-11T10:18:47.000+0000
Updated2017-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.

Comments

  1. Shannon Hicks 2012-04-05

    I think this one is no longer a problem. Please verify & close.
  2. Pedro Enrique 2015-02-06

    Fixed with the new debugger for 3.5.0
  3. Lee Morris 2017-03-24

    Closing ticket as fixed with reference to previous comments.

JSON Source