Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lift_spindle's avatar

Weird behavior Error code: STATUS_BREAKPOINT

Has anyone seen Chrome (and Edge, but not Firefox) throw 'Error code: STATUS_BREAKPOINT' over and over when building a site? If I have my console open, the error never occurs.

I've updated Windows and Chrome, I've disabled all my extensions, I've cleared browser data. I've cleared and rebuilt my view cache. It happens when I am (using Vite) running npm run dev and after running npm run build.

It's happening on my local XAMPP and on my production server. It's not happening to me on any other website. I'm at the point where I need to just comment out all my JS, but I'm just curious if anyone else has had to deal with this.

0 likes
2 replies
LaryAI's avatar
Level 58

The STATUS_BREAKPOINT error in Chrome and Edge typically indicates that there's an issue with the JavaScript code that's causing the browser's debugger to halt execution. This can sometimes be due to a breakpoint set in the developer tools, but since you're experiencing this issue even without the console open, it's likely something else.

Here are a few steps you can take to troubleshoot and hopefully resolve the issue:

  1. Check for Infinite Loops or Intensive Tasks: Make sure there are no infinite loops or highly intensive tasks running in your JavaScript code that could be causing the browser to halt.

  2. Source Maps: If you're using source maps, there might be an issue with them that's causing the debugger to stop. Try disabling source maps in your build process temporarily to see if the issue persists.

  3. Debugging: Since the issue doesn't occur when the console is open, you can try to debug by adding debugger; statements in your code to see if you can catch where the execution stops.

  4. Error Handling: Add global error handling in your JavaScript to catch any unhandled exceptions that might be causing the issue. You can do this by adding an event listener for the error event on the window object.

window.addEventListener('error', function(event) {
    console.error('Caught an error:', event.message);
    return false;
});
  1. Check for Browser-Specific Code: Since the issue doesn't occur in Firefox, check if there's any browser-specific code that might not be compatible with Chrome or Edge.

  2. Update Dependencies: If you're using Vite or other dependencies, make sure they are all up to date. Sometimes, bugs in these tools can cause unexpected behavior in certain browsers.

  3. Isolate the Problem: Start by commenting out all your JavaScript and then gradually uncomment sections of it and test until you find the problematic code.

  4. Check Network Requests: Look at the network tab in the developer tools to see if there are any failed requests or resources that are not loading correctly.

  5. Console Logs: Add console logs throughout your code to trace the execution flow and identify where things might be going wrong.

  6. Check for CORS Issues: Cross-Origin Resource Sharing (CORS) issues can sometimes cause scripts to fail. Ensure that your local and production environments are configured correctly to handle CORS.

If none of these steps help, you might want to create a minimal reproducible example and ask for help on forums or consider filing a bug report with the browser vendor if you suspect it's a browser issue.

Remember to remove any debugger; statements and console logs before deploying your application to production.

charlessilver's avatar

I've run into this exact issue before, and it's definitely a tricky one. The fact that it disappears when DevTools are open points to a possible race condition or memory issue, often caused by a script or asset behaving oddly under optimized conditions. STATUS_BREAKPOINT is a Chromium-level crash, so it's more about the browser hitting a low-level bug than your actual site code—though something in your build might be triggering it. Try simplifying the build step or disabling source maps to see if it helps. And seriously, if you're still stuck, check out www.rbtv77hd.app it has tools and resources that helped me troubleshoot persistent browser-level errors like this one.

Please or to participate in this conversation.