This discussion is archived
4 Replies Latest reply: Jul 31, 2013 9:15 AM by Walt K RSS

Firebug Javascript Debug

Walt K Newbie
Currently Being Moderated

I am trying to set a Firebug javascript breakpoint on a function defined in a static file in Shared Components.

 

When I try to click on the javascript file to set the breakpoing Firebug says The resource from this URL is not text: blah blah blah.


Is there something I can do to set a breakpoint on a function defined in a static file?


Thanks!

  • 1. Re: Firebug Javascript Debug
    Nicolette Expert
    Currently Being Moderated

    WaltK

     

    Check if the mimetype of the static file is actual javascript.

    If not firebug doesn't recognize the file as javascript resulting in the mentioned message.


    If the mimetype is set correctly you shouldn't have any problems with setting a breaking point.


    Nicolette

  • 2. Re: Firebug Javascript Debug
    Walt K Newbie
    Currently Being Moderated

    I have type="text/javascript" set.

     

    <script type="text/javascript" src="#WORKSPACE_IMAGES#bootstrap.min.js"></script>

    <script type="text/javascript" src="#WORKSPACE_IMAGES#walt.js"></script>

     

    Firebug throws the same error for both bootstrap and my js.

  • 3. Re: Firebug Javascript Debug
    Nicolette Expert
    Currently Being Moderated

    Waltk

     

    What I meaned was if you look under shared components > static files. In the detailed view.

    What is the mime type of the mentioned files?

    It should be application/x-javascript.

    If it's not delete the current file and upload again.

     

    Nicolette

  • 4. Re: Firebug Javascript Debug
    Walt K Newbie
    Currently Being Moderated

    Nicolette,


    You are absolutely correct. It is application/octet-stream.


    I am using 4.0. I can assign the Application. And the Character Set. But I see nowhere to assign mime type after deleting and trying to upload.


    However I saw another message here that referenced that IE caused the mime type to be application/octet-stream and that Firefox would work correctly. I uploaded in Firefox.


    All is right with the world now!


    Thanks!

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points