question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prevent devtool debugger "pause on debugging" aka disable all breakpoints on devtools

See original GitHub issue

I need to scarping this page: http://r1si.com/test.html If you try to open devtools u see “Pause on debugging” on top of page. This because inside that page there is a code like this: var testR1si = setInterval(function(){ debugger; console.log("go on"); },1000); As you can see there is a continuous debugger.

I need to scarping this page with headless mode, but when go to headless debug address (eg: http://127.0.0.1:9299 ) see the same problem. (Pause on debugging)

There is same method to prevent all debugger on page, or disable all breakpoints?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

2reactions
Zebraslivecommented, Oct 10, 2021

I just found this https://github.com/berstend/puppeteer-extra/tree/master/packages/puppeteer-extra

the stealth plugin might help.

// Add stealth plugin and use defaults (all tricks to hide puppeteer usage)
const StealthPlugin = require('puppeteer-extra-plugin-stealth')
1reaction
r1sicommented, Dec 28, 2019

any advice?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to prevent chrome devtools from stopping on `debugger ...
The deactivate breakpoints button (⌘/ctrl + F8) disables both the debugger statements and the user breakpoints so it's not really a solution.
Read more >
Pause your code with breakpoints - Chrome Developers
Use breakpoints to pause your JavaScript code. This guide explains each type of breakpoint that's available in DevTools, as well as when to ......
Read more >
How To Stop The Debugger In Chrome Dev Tools - ADocLib
Turn on developer tools with F12 (Mac: Cmd+Opt+I ). Temporarily disable the breakpoint by unchecking it. Remove If you click on a stack...
Read more >
Never Pause Here! Undoing Breakpoints in Chrome Devtools
TL;DR Right click in the area where you'd normally set breakpoints, select “never pause here” and you can prevent the debugger from stopping...
Read more >
Debugging JavaScript Efficiently with Chrome DevTools | Buddy
Pausing then inspecting the code is a productive way to debug rather than console.log(data) and reloading pages. Once everything seems to be ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found