firebug

firebug: how to cd to an iframe

纵饮孤独 提交于 2019-12-20 07:58:35
问题 I have a facebook canvas application that runs in an iframe. I would like to debug my page in firebug but can not get the javascript to scope to the iframe that is running my app. the iframe: <iframe frameborder="0" src="[app_url_removed]" name="iframe_canvas" id="iframe_canvas" class="canvas_iframe_util" style="height: 905px;"></iframe> i've tried all the following and none of them work: cd(iframe_canvas) cd(window.iframe_canvas) cd(iframe_canvas.window) cd($('iframe_canvas')) I have firefox

Firebug does not display my JavaScript files

浪子不回头ぞ 提交于 2019-12-20 06:37:30
问题 I am building a web application with AngularJS en typescript in VS2012. These TypeScript files are all compiled into JavaScript files and send to the client using Bundles (all options turned off, thus I'm sending all files individually). In Firebug HTML view I can see all my JavaScript files, but in the scripts tab, only my TypeScript files are visible. Am I missing a configuration here to display my JavaScript files? I can add a mime type to serve the TypeScript files, but then I loose my

firebug (1.10.1) suggests javascript is not confined to a single thread in firefox (13.0)

不想你离开。 提交于 2019-12-20 03:24:10
问题 While debugging some client side javascript today in Firefox, I ran into something that I found quite odd and little unnerving. Also, I was unable to duplicate this behavior while debugging the same script with IE / VS2010. I created a simple example html document to illustrate the anomally I am seeing. <!DOCTYPE html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js" type="text/javascript" ></script> </head> <body id="main_body"> <script type="text

在调试时或从JavaScript代码中如何在DOM节点上查找事件侦听器?

巧了我就是萌 提交于 2019-12-19 12:05:54
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 我有一个页面,其中一些事件侦听器附加到输入框和选择框。 有没有一种方法可以找出哪些事件侦听器正在观察特定的DOM节点以及针对哪个事件? 使用以下事件附加事件: 原型的 Event.observe ; DOM的 addEventListener ; 作为元素属性 element.onclick 。 #1楼 (由于 此问题 很重要,因此请重写 此问题 的答案。) 调试时,如果您只想查看事件,我建议... 视觉事件 Chrome开发人员工具的“ 元素” 部分:选择一个元素,然后在右下角查找“事件监听器”(与Firefox类似) 如果要在代码中使用事件,并且正在使用 1.8之前的 jQuery,则可以使用: $(selector).data("events") 得到事件。 从1.8版本开始,不再使用.data(“ events”) (请参阅 此bug票据 )。 您可以使用: $._data(element, "events") 另一个示例:在指向控制台的特定链接上写入所有click事件: var $myLink = $('a.myClass'); console.log($._data($myLink[0], "events").click); (有关工作示例,请参见 http://jsfiddle.net/HmsQC

Strings in array are no longer strings after jQuery.each()

你说的曾经没有我的故事 提交于 2019-12-19 05:13:08
问题 I'm pretty confused with the behaviour of arrays of strings when I loop them through the jQuery.each() method. Apparently, the strings become jQuery objects inside the callback function. However, I cannot use the this.get() method to obtain the original string; doing so triggers a this.get is not a function error message. I suppose the reason is that it's not a DOM node. I can do $(this).get() but it makes my string become an array (from "foo" to ["f", "o", "o"] ). How can I cast it back to

Don't see any scripts in Firebug “Script” menu

戏子无情 提交于 2019-12-19 05:07:26
问题 I have enabled Firebug for scipts for my site. But I do not see any in the Script dropdwon menu. The Net tab has them listed as ok. I tried another web site not mine same thing? 回答1: Same as @SebastianZartner said: Since Firefox 50 the Script panel does not work anymore! Firebug won't work anymore once multi-process Firefox is enabled and features like the Script panel are already starting to break. So it seems we invited to: Firefox DevTools in Firefox Developer Edition It provide a Firebug

Using console.log() with firebug works locally, but not when published to my live site

ぐ巨炮叔叔 提交于 2019-12-19 04:11:21
问题 I'm using the: console.log() method to log messages to firefox (3.6.6)/firebug while working on my webapp. When I view the app locally, it works fine, log messages come up ok. When I push my app up to my live server and view the page, I get lots of 'console not defined' errors. I am not quite certain how the console object was even resolved in the first place, since I don't have any js includes for it in the first place. What's the right way to use the console object? Thanks http://getfirebug

How to interpret grey items in Firebug Net panel?

我只是一个虾纸丫 提交于 2019-12-18 18:53:50
问题 I'm trying to debug some tricky behaviour in my web application: It appears as though an XHR GET request is being sent by the client, but the server never actually receives it. Furthermore, the client seems to receive duplicate data in the unseen request as the previous XHR request it sends. Further confounding matters, Firebug colors the second XHR request as light gray in the Net panel (the request here is third from the bottom, the second "GET test"): I haven't been able to find any

Catching the specific javascript code being executed onClick

大憨熊 提交于 2019-12-18 18:38:11
问题 I am working on a site that has loads of legacy javascript and jquery includes and there is no documentation to show what is happening when. I have a specific problem to fix and I cannot find the relevant code that is being executed when a button is clicked. To save me from trawling through (and making sense of) hundreds of lines of legacy script, is there a feature, possibly in Firebug, that will identify what script is being executed when I click on a button? Thanks for your help. 回答1: I

Debugging Ajax code with Firebug

旧时模样 提交于 2019-12-18 12:54:31
问题 I've a couple of problems debugging code returned in an Ajax call - specifically, a function returned in json (errors don't get trapped in Firefox) - up to the point where I started debugging these problems in Internet Explorer (I think it's a firefox related problem, as Venkman doesn't detects those errors either) Do you know of any way to debug code returned in json from an Ajax call? EDITED 03/04/2009 15:05 Thanks to all for your responses, but I think I didn't explain myself well enough.