JS Coding Questions Logo
JS Coding Questions
#164💼 Interview💻 Code

What is a debugger statement

Advertisement

728x90

The debugger statement invokes any available debugging functionality, such as setting a breakpoint. If no debugging functionality is available, this statement has no effect.

For example, in the below function a debugger statement has been inserted. So

execution is paused at the debugger statement just like a breakpoint in the script source.

javascript
1function getProfile() {
2  // code goes here
3  debugger;
4  // code goes here
5  }

Advertisement

Responsive Ad
🎯 Practice NowRelated Challenge

JavaScript Coding Exercise 79

Test your knowledge with this interactive coding challenge.

Start Coding

Advertisement

728x90
164of476