How to debug when files are compressed

Sep 8, 2011 at 8:37 PM
Edited Sep 9, 2011 at 7:00 PM

Hi

I am using combres and have encounted a weird problem. When I have all my scripts in debug mode combres does not combine them or minify them(this is wanted and expected). However when I combress and combine them 2 of my scripts fail. I don't know why but in firebug I get 500 server error and none of the scripts get compressed. I never had this problem before and I am currently using it to combress like 50 javascript files

 

 

// first js file
$(function ()
{
    suveryFeedBack.init();
});


var suveryFeedBack = (function (my, $)
{

    my.init = function () {
       suveryFeedBack.preload();
    };

    my.selectors = {
        feedback: '#feedback'
    };


    return my;

} (suveryFeedBack || {}, jQuery));

// second
var suveryFeedBack = (function (my)
{
    var selectors = my.selectors;
    my.preload = function ()
    {

        var renderFeedback = $(selectors.feedback).livequery(function ()
        {
            $('#feedback').feedback
            ({
                'position': 'right',
                'mouseoverColor' : 'black',
                'mouseoffColor' : 'red'	
            });

        });


    };

     return my;

 } (suveryFeedBack || {}));

 

      <resourceSet name="FeedBack" type="js">
        <resource path="~/Scripts/Plugins/JQFeedback/feedback.jQuery.js"/> // a plugin this works and can be compressed
        <resource path="~/Scripts/Feedback/_mFeedback.js"/>  // seems to die on this file when it tries to compress and minify -- first file in above code
        <resource path="~/Scripts/Feedback/mFeedback-Events.js"/>
      </resourceSet>

 

 

 

        <resourceSet name="MyContainer" type="js">
            // about 10 resource sets
            <resource reference="FeedBack"/>
        </resourceSet>

 

//error

 

NetworkError: 500 Internal Server Error - http://localhost:3000/combres.axd/MyContainer/713d0c8cc62a8e71b7bf047e78457342912a14900a67b565077b354e9088eb035b0e661a43b8e6cc5ea142046cb6ec493678e8e73495627554053bfc25380b13/"

// not sure if this is part of it




DATA_CLONE_ERR
25

DOMSTRING_SIZE_ERR
2

HIERARCHY_REQUEST_ERR
3

INDEX_SIZE_ERR
1

INUSE_ATTRIBUTE_ERR
10

INVALID_ACCESS_ERR
15

INVALID_CHARACTER_ERR
5

INVALID_MODIFICATION_ERR
13

INVALID_STATE_ERR
11

NAMESPACE_ERR
14

NOT_FOUND_ERR
8

NOT_SUPPORTED_ERR
9

NO_DATA_ALLOWED_ERR
6

NO_MODIFICATION_ALLOWED_ERR
7

SYNTAX_ERR
12

TYPE_MISMATCH_ERR
17

VALIDATION_ERR
16

WRONG_DOCUMENT_ERR
4

code
15

columnNumber
0

constructor
DOMException { INDEX_SIZE_ERR=1, DOMSTRING_SIZE_ERR=2, HIERARCHY_REQUEST_ERR=3, more...}

data
null

filename
"chrome://yslow/content/yslow/peeler.js"

inner
null

lineNumber
335

location
JS frame :: chrome://yslow/content/yslow/peeler.js :: <TOP_LEVEL> :: line 335 { language=2, languageName="JavaScript", filename="chrome://yslow/content/yslow/peeler.js", more...}

message
"A parameter or an opera...y the underlying object"

name
"NS_ERROR_DOM_INVALID_ACCESS_ERR"

result
2152923151
Edit
The problem seems to be for whatever reason I have to have the first line of the javascript file a blank line or a commented line other wise I get those errors. I am not sure if my stuff or what. Can someone test?
    <resourceSets url="~/combres.axd" defaultDuration="30"
                                  defaultVersion="auto"
                                  defaultDebugEnabled="true"
                                  defaultVersionGenerator"Combres.VersionGenerators.Sha512VersionGenerator"
                                  defaultIgnorePipelineWhenDebug ="true"
                                  defaultCompressionEnabled="true">

Those are the options I have set.