pause console debugger in react 1

pause console debugger in react

setTimeout(() => {debugger;}, 5000)

Here is what the above code is Doing:
1. We’re creating a new function called `setTimeout` that takes two arguments:
– a callback function
– a number of milliseconds to wait before calling the callback function
2. We’re calling the `setTimeout` function, passing in a callback function that calls `debugger` and a number of milliseconds to wait before calling the callback function.
3. We’re calling `debugger` immediately.

When you run this code, you’ll see that the debugger is called immediately, and then again after 5 seconds.

Similar Posts