1. #1
    Sencha Premium Member
    Join Date
    Jul 2007
    Posts
    256
    Vote Rating
    1
    brookd is on a distinguished road

      0  

    Default Debugging Errors

    Debugging Errors


    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?

  2. #2
    Sencha Premium Member
    Join Date
    Jul 2007
    Posts
    256
    Vote Rating
    1
    brookd is on a distinguished road

      0  

    Default Feature Idea

    Feature Idea


    It would be very useful if JSBuilder indicated which file a compilation error occurred in. Right now you get an error like this:

    Code:
    [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.