firebug

How do you stay on top of a complex JavaScript project?

蓝咒 提交于 2019-12-21 11:25:30
问题 I'm using Firebug to help figure out what's going on in my JavaScript (+JQuery) code. I'm mainly using it to print out tons of console.log statements. This is probably not the most efficient way to stay on top of the project. As it has grown from just a few functions to over a hundred I am starting to get confused about how everything fits together. I mean, it works somehow but when I look at the code now I almost feel like someone else wrote it because it's so confusing. Now I have a crazy

Debugging dynamically added javascript files

自作多情 提交于 2019-12-21 09:12:17
问题 I have a web application which dynamically adds javascript files based on what the user chooses as options using ajax in real time to avoid refreshing the screen. I am now trying to debug these dynamically added javascript files and have tried both Google Chrome's developer tools and Firebug's pluggin for Firefox, and have noticed that the dynamically added javascript "files" do not appear, so I can't select them to add breakpoints etc. So, is there a solution for this, i.e. debugging

FireBug and monitoring JSONP cross-domain requests

夙愿已清 提交于 2019-12-21 09:07:17
问题 This question is specific to the Firebug plugin for Firefox. The actual functionality works, but I lost my ability to monitor and debug it in Firebug. I had a website which used JSON to get data. In Firebug, I was able to monitor the JSON requests. It would show me each one of them, the headers, and the data that was returned. I needed to change the server to which I submitted my JSON requests. In order to get cross-domain JSON to work, I used JSONP with the callback=? method. I got the

The site specified an invalid Strict-Transport-Security header - firebug

让人想犯罪 __ 提交于 2019-12-21 07:08:41
问题 I am getting this warning in firebug when adding HSTS header. The site specified an invalid Strict-Transport-Security header. here is my htaccess <IfModule mod_headers.c> Header append X-FRAME-OPTIONS: SAMEORIGIN Header append Strict-Transport-Security: 'max-age=31536000; includeSubDomains' </IfModule> When I remove quotes from the value I get Internal Server Error . Website is being served through https, redirect from http to https is set from apache's site file. SSL certificate is self

Screen scraping pages that use CSS for layout and formatting…how to scrape the CSS applicable to the html?

一笑奈何 提交于 2019-12-21 04:39:24
问题 I am working on an app for doing screen scraping of small portions of external web pages (not an entire page, just a small subset of it). So I have the code working perfectly for scraping the html, but my problem is that I want to scrape not just the raw html, but also the CSS styles used to format the section of the page I am extracting, so I can display on a new page with it's original formatting intact. If you are familiar with firebug, it is able to display which CSS styles are applicable

How can I filter XHR requests by name in Chrome developer tools / Firebug

╄→гoц情女王★ 提交于 2019-12-21 03:47:10
问题 My problem is the webapp I am working on is pinging the server at short interval so I have many lines coming in Network tab of Chrome developer tools. First problem: Chrome start to be irresponsive and then crash Second problem: I want to remove all the ping request and have only the request I want to monitor. Is there a way to filter XHR request by name or pattern ? Bonus : same question apply for Firebug In this screenshot I wish to filter our all 'bind' requests. Thanks 回答1: This feature

Firebug like plugin for Safari browser

人盡茶涼 提交于 2019-12-20 11:48:07
问题 Is there a development tool plugin for Safari much like how there exists the Firebug plugin for Firefox? 回答1: Firebug is great, but Safari provides its own built-in development tools. If you haven't already tried Safari's development kit, go to Safari-->Preferences-->Advanced, and check the box next to "Show Develop menu in menu bar". Once you have the Develop menu enabled, you can use the Web Inspector to get a lot of the same functionality that Firebug provides. 回答2: http://getfirebug.com

Unable to float a twitter bootstrap navbar item right with either class=pull-right or float:right

心已入冬 提交于 2019-12-20 10:36:59
问题 I am using Twitter bootstrap and Rails and I can't seem to float a navbar item to the right. I tried using something like this: <li class="whoami pull-right"> <%= link_to ("Logged in as: " + current_user.name), edit_user_registration_path , :id=>"Edit account"%> </li> ... but the link stayed left and firebug showed "float:left;" So I tried to overide the css float in bootstrap_and_overrides.css.less and in home.html.erb , but neither worked. Firebug indicated that it found two css float

Can I “step over” just jQuery code while debugging?

和自甴很熟 提交于 2019-12-20 08:58:01
问题 While stepping through a script that uses jQuery, I just want to test the code I wrote . I don't want to step into the jQuery file -- I'm not debugging jQuery, just my own file. Are there any ways to tell a debugger to not step into the jQuery file? I use Visual Studio + Internet Explorer, as well as Firefox + Firebug for stepping through code ... and both seem to love to step through dozens of jQuery statements. For example, say I have a script like this: $("div").each(function() { $(this)

Firebug and jQuery selectors in an iFrame

北城以北 提交于 2019-12-20 08:50:39
问题 I'm working on a web application and using the jQuery plug-in Colorbox to pop up a window that presents a form for editing elements of the parent window. I'm using Firebug to debug my Javascript and jQuery, and I noticed that I can't select an element in my Colorbox HTML form using the jQuery console command line. For instance: $date = $("#date"); returns nothing when run from the jQuery console command line, even though I have an input element with id="date" and the Firebug "element inspect"