0

I wondering if javascript not a command to launch browser debugger same as c#,

System.Diagnostics.Debugger.Launch();

For the life of me, I want to put a single command in javascript code to pause debugger on that, it is so useful for productivity.

1

1 Answer 1

2

Use

debugger;

Javascript will always stop if you reach this point of code.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/debugger

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.