PDA

View Full Version : Debugging Errors



brookd
17 Nov 2009, 5:37 PM
When jsBuilder2 gives you errors, how to you find where they are coming from? An example is:

[ERROR] 4780:66 missing name after . operator
[ERROR] 4792:24 missing : before operator
[ERROR] 16953:13 identifier is a reserved word

How can you find the source file that resulted in the error warnings?

brookd
21 Nov 2009, 11:55 AM
It would be very useful if JSBuilder indicated which file a compilation error occurred in. Right now you get an error like this:




[ERROR] 1275:101:missing name after . operator

[ERROR] 1:0:Compilation produced 1 syntax errors.
org.mozilla.javascript.EvaluatorException: Compilation produced 1 syntax errors.
at com.extjs.JSBuilder2$2.runtimeError(JSBuilder2.java:325)
at org.mozilla.javascript.Parser.parse(Parser.java:410)
at org.mozilla.javascript.Parser.parse(Parser.java:355)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:312)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.(JavaScriptCompressor.java:533)
at com.extjs.JSBuilder2.compressOutputFiles(JSBuilder2.java:302)
at com.extjs.JSBuilder2.main(JSBuilder2.java:45)




And there is no way to tell which file JSBuilder choked on.