Tilman Schneider schrieb:
The only problem is, that the whole code in qooxdoo.js is in one line. So I changed my local version to have a newline after each semicolon. This way I get real stack traces in the qooxdoo code, too.

Normally all newlines in the compiled qooxdoo.js are removed. This makes it difficult to debug the qooxdoo code, since you get a stack trace that points always to the same single line.


To add newlines in qooxdoo.js do the following:

In tools/generate/internal/settings.py: Change "newlines = False" to "newlines = True" (line 12)

In tools/generate/internal/combine.sh:
Change
  rest=`grep -v "Copyright" build/${file}.js`
  echo -n $rest >> build/script/qooxdoo.js
into
  grep -v "Copyright" build/${file}.js >> build/script/qooxdoo.js


The size of qooxdoo.js raises from 653,5 kB (114,6 kB compressed) to 679,2 kB (116,6 kB compressed). So this is affordable IMHO when you consider that you'll get line numbers in return.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to