Last Updated: February 25, 2016
·
567
· tleite

Quick way to add a Javascript debugger statement on Sublime Text

If you use Sublime Text to code Javascript, here is a shortcut to add a debugger statement:

Step 1: Go to Preferences > Key Bindings - User

Picture

Step 2: Add the following snippet

{"keys": ["ctrl+d"], "command": "insert_snippet","args": {"contents": "debugger"}}

That's it. Now when you press control + d, Sublime will insert debugger.

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.

Security insights from Cside