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

  • Home
  • SEARCH
  • 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 218899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:47:40+00:00 2026-05-11T18:47:40+00:00

In one HTML page I have a JavaScript function checkUpdates() that hits the server.

  • 0

In one HTML page I have a JavaScript function checkUpdates() that hits the server. I make this function run every 5 seconds with this line:

window.setInterval("checkUpdates()", 5 * 1000);

In Firebug, I put a breakpoint inside the checkUpdates() function. However, after the code execution stops at this breakpoint, pressing “continue” sometimes doesn’t do anything. All the JavaScript on my page appears to have stopped.

Does this have something to do with the above line of code? Does the loop that executes checkUpdates() every 5 seconds pause when I am at a breakpoint, or does it continue running in the background? I wonder if waiting longer than the 5-second interval to press “continue” is what causes things to break.

Side note: I am new to Javascript and event-driven programming in general, so I am still a bit fuzzy on a few of the paradigms, such as whether code gets executed sequentially or concurrently. Any pointers to reading material on this would be appreciated.

  • 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-11T18:47:40+00:00Added an answer on May 11, 2026 at 6:47 pm

    Does the loop that executes checkUpdates() every 5 seconds pause when I am at a breakpoint, or does it continue running in the background?

    Yes, it does STOP everything!

    but soon you click “Continue” or “Play” it will resume and continue to break in the same spot (I’m guessing that you are breaking inside the checkUpdates method.

    use the Firebug in order to track this, it is very easy to use.

    I just made a simple HTML file so you can see this running

    There’s also a screencast here.

    code : http://jsbin.com/izazu <– remember that you can edit adding /edit in front of the url.

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

Sidebar

Ask A Question

Stats

  • Questions 117k
  • Answers 117k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Presumably (if all assumptions that I had to make due… May 11, 2026 at 10:47 pm
  • Editorial Team
    Editorial Team added an answer I'm not certain which but I think you need to… May 11, 2026 at 10:47 pm
  • Editorial Team
    Editorial Team added an answer Try \vspace{-5mm} before the itemize. May 11, 2026 at 10:46 pm

Related Questions

There are essentially 2 places to define JavaScript functions in Grails, directly in a
I have a form on an HTML page with multiple submit buttons that perform
I searched all over this site and the web for a good and simple
I have a C# .NET page where I want to make rows collapse when

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.