firebug

Dojo console error objects empty

一笑奈何 提交于 2019-12-23 16:18:57
问题 All of a sudden the errors that Dojo (1.8.3 from Google CDN) is spitting out empty errors, which makes debugging impossibly hard. For example, if I forget to require a dependent before using it, I get the usual > dojo/parser::parse() error ReferenceError {} ... in the error console, but I remember getting more information in the ReferenceError (spindown arrow was present), giving me the arguments of the error as well as the message making it easy to figure out what I had done wrong. I have

Is it possible to turn off “NetworkError: 404 Not Found - XXX” messages in Firebug?

落花浮王杯 提交于 2019-12-23 15:12:14
问题 I do a lot of development on a local machine using a copy of the production database, which means that most of the image files referenced in the database are missing locally. Because of this, recent versions of Firebug flood the JavaScript console with "NetworkError: 404 Not Found - XXX" messages every time I refresh a page, making it hard to see the actual information I need. I've searched the Firebug site and Google Group with no luck. Is there a way to disable these 404 notifications and

“TypeError: $(…) is null” What's Going On?

谁说我不能喝 提交于 2019-12-23 13:12:21
问题 Firebug is giving the error: TypeError: $(...) is null $('#menu img').hover( I have no idea why. The seemingly problematic script is this which replaces an image when the cursor hovers over an image: $(document).ready(function() { var storeNormalPath; $('#menu img').hover( function() { storeNormalPath = $(this).attr('src'); var imgArray = $(this).attr('src').split('.jpg'); $(this).attr('src', imgArray[0]+'Hover.jpg'); }, function() { $(this).attr('src', storeNormalPath); } ).click (function()

Why do variable declarations in the console keep returning “undefined”?

情到浓时终转凉″ 提交于 2019-12-23 12:08:21
问题 I am using the latest Firefox (4.0.1) and Firebug (1.7.2). Any time I enter a variable declaration into the console, an italicized "undefined" warning is returned. So for example if I enter "var x = 5;" then the response is "undefined", rather than "5". Afterward if I enter "x" into the console, the proper value of 5 is returned. However the error/warning is a bit of a nuisance, would really like to know the cause and resolution, and if I'm the only one experiencing this. Interestingly if I

Why is a matched substring returning “undefined” in JavaScript?

社会主义新天地 提交于 2019-12-23 11:39:22
问题 I came across a strange behaviour when doing some regular expressions in JavaScript today (Firefox 3 on Windows Vista). var str = "format_%A"; var format = /(?:^|\s)format_(.*?)(?:\s|$)/.exec(str); console.log(format); // ["format_%A", "%A"] console.log(format[0]); // "format_undefined" console.log(format[1]); // Undefined There's nothing wrong with the regular expression. As you can see, it has matched the correct part in the first console.log call. Internet Explorer 7 and Chrome both behave

$(“#slider_range”).slider is not a function

无人久伴 提交于 2019-12-23 10:21:55
问题 Ok, I have included the google api libraries for Jquery UI, like so: <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js' ></script> Now I have a script that updates some spans and a hidden input on document slide and not only, on document ready: <script type="text/javascript"> $(document).ready(function() { var slider=$('#slider_range').slider({ range:true, min:0, max:5, step:1, values:[0,3], slide:function(event,ui) { $('#level').val(ui

Debugging TypeScript in Firebug

岁酱吖の 提交于 2019-12-23 09:34:18
问题 Is there any instruction how to debug typescript in Firebug and/or built-in Firefox js-debugger? Something like but for Firebug and/or Firefox 回答1: Firefox Developer Edition allows debugging of TypeScript code. The only thing missing is syntax highlighting. 回答2: Chrome canary supports this: http://www.aaron-powell.com/web/typescript-source-maps 回答3: Firebug is closely integrated with the Javascript execution engine of Firefox. As long as Firefox or Firebug have no support for Typescript I

Use Firebug to get a deep copy of CSS in elements

自古美人都是妖i 提交于 2019-12-23 09:05:11
问题 I am using Firebug to inspect the elements of a webpage. On the right hand of the page there is a "style" tab that list all the CSS styling for a given tag. These CSS styling are coming from a linked CSS page. What I am looking to do is somehow copy a set of divs with the CSS hardcoded in the div. This way I can copy and paste the elements and have the exact same styling. Is this possible to do with Firebug or perhaps another tool? 回答1: I don't know about Firebug, but you could build a script

breakpoint after page reload

拜拜、爱过 提交于 2019-12-23 07:55:46
问题 I need to stop on breakpoint after page reloading. I put a breakpoint in code but after reload it's being disabled. putting debugger; in code works fine. But I was wondering if there is a way to do it in firebug or chrome dev tools. 回答1: May be you have parameters in the url of the page that changes when your reload. http://website.com/page.html?stamp=20120516103456 You then load a new page each time you refresh. That may explain why your breakpoint disappear. 来源: https://stackoverflow.com

jQuery Debugging

梦想的初衷 提交于 2019-12-23 05:40:27
问题 How prevent a debugger (Firebug or PhpStorm in this case) from step in jQuery and its plugins source code and just step over our own code? 回答1: JavaScript debuggers have no way to determine the difference between your code and someone else's code. You're best option is to either set breakpoints before & after the blocks of code you want to skip (say a jQuery selector) so you can use the debuggers Continue feature to skip that external code. Alternatively you can use the debugger statement to