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 3630586
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:17:20+00:00 2026-05-19T00:17:20+00:00

I am looking for an equivalent in Chrome to the break on all errors

  • 0

I am looking for an equivalent in Chrome to the “break on all errors” functionality of Firebug. In the Scripts tab, Chrome has a “pause on all exceptions”, but this is not quite the same as breaking on all errors.

For instance, when loading a page with the following code, I would like Chrome to break on the line foo.bar = 42. Instead, even when enabling the “Pause on all exceptions”, I don’t get the expected result.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <script type="text/javascript">

            function doError() {
                foo.bar = 42;
            }

            window.onload = function() {
                try {
                    doError();
                } catch (e) {
                    console.log("Error", e);
                }
            }
        </script>
    </head>
    <body>
    </body>
</html>

You can try the code pasted above on this page or using this jsFiddle.

  • 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-19T00:17:21+00:00Added an answer on May 19, 2026 at 12:17 am

    Edit: The original link I answered with is now invalid.The newer URL would be https://developers.google.com/web/tools/chrome-devtools/javascript/add-breakpoints#exceptions as of 2016-11-11.

    I realize this question has an answer, but it’s no longer accurate. Use the link above ^


    (link replaced by edited above) – you can now set it to break on all exceptions or just unhandled ones. (Note that you need to be in the Sources tab to see the button.)

    Chrome’s also added some other really useful breakpoint capabilities now, such as breaking on DOM changes or network events.

    Normally I wouldn’t re-answer a question, but I had the same question myself, and I found this now-wrong answer, so I figured I’d put this information in here for people who came along later in searching. 🙂

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

Sidebar

Related Questions

I’m looking for equivalent functionality to C# regions in javascript C# syntax #region RegionName
I'm looking for the equivalent of right clicking on the drive in windows and
I'm looking for the equivalent in Qt to GetTickCount() Something that will allow me
I'm looking for the equivalent of the Unix 'tail' command that will allow me
I'm looking to the equivalent of Windows _wfopen() under Mac OS X. Any idea?
I'm looking for the equivalent of a urlencode for terminal output -- I need
I'm looking for an Access 2007 equivalent to SQL Server's COALESCE function. In SQL
What I am looking for is the equivalent of System.Windows.SystemParameters.WorkArea for the monitor that
What I'm looking for is a basic equivalent of JavaScript's Array::join() whereby you pass
I am looking for the VB.NET equivalent of var strings = new string[] {abc,

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.