Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1002159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:47:25+00:00 2026-05-16T07:47:25+00:00

I have debugged through JavaScript using Firebug more than hundred times without worrying about

  • 0

I have debugged through JavaScript using Firebug more than hundred times without worrying about whats happening there.
I want to know how exactly a Firebug handles JavaScript/DOM debugging.

Say I set a break point on some statement inside a method and start debugging. I want to know what’s going on in there?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T07:47:27+00:00Added an answer on May 16, 2026 at 7:47 am

    When you click on a line to set a breakpoint, Firebug records the file URL and line number in case you reload the page. Then it looks up the URL/line in its internal data structures to decide which Javascript function (called a ‘script’ in Mozilla) you want to breakpoint. Next it calls a Mozilla platform function to map the line number to a program counter relative to the start of the function. Finally it calls the platform to set a breakpoint on the program counter.

    Back when you activated the Script panel, Firebug registered callbacks with the platform. One of those, onBreak, handles breakpoints. As the platform runs JS code it check its internal structures to see if the current program counter has a breakpoint set. If so, it stops JS execution and calls back to firebug.

    Firebug then looks at the breakpoint to decide if this is a conditional breakpoint, if it has the correct data to support the debugger UI at this breakpoint, and so on. If conditions are ok, it tells the platform to suspend debugging, Javascript execution for the web page, and platform events for the web page. Then it shows the source file for the breakpoint and highlights the line. If conditions are not good, it just continues.

    The complex parts come when the platform does no support correct line number to program counter mapping. For example, Firebug has lots of code to deal with eval() and browser generated event handlers.

    Questions like these are better on the Firebug newsgroup in my opinion.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a div that I create through javascript. In that div I create
I have successfully debugged my own memory leak problems. However, I have noticed some
Is rails debugging supported on Aptana Studio 3. I have earlier debugged Rails applications
I have this $data array: (built on a shell, not a form) (debugged here)
I have Drag/Drop functionality in my page embedded using YAHOO.js which is initalized at
I've been having a problem using the javascript API of the RadComboBox from Telerik.
I have a javascript object, and I want to recursively search it to find
Does Dreamweaver CS 3 have a JavaScript debugger? The only information on anything close
I'm working on a simple JavaScript based game using the canvas tag. As part
I'm not sure why this is happening. I have a string array that should

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.