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

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.
Written by Thiago Leite
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Javascript
Authors
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
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#