Hey guys, thought it'd be fun to share some different takes on Print Debugging
You can create your own snippets for Print Debugging so it becomes useful in different ways, you might even be able to come up with a use-case for it that's totally different altogether.
So I thought it'd be interesting to see what everyone does with Print Debugging. Please share your customised snippets, if you have any.
Here's mine, I've customised it so that it just increments by 1 each time you place a print statement:
// auto_abbreviation: false
// indent_relative: false
// is_clean: true
// set_selection: true
// treat_as_ejs: true
// type: snippet
// version: 1.1.5
console.log(!@#_currentPos<% window._c = window._c !== undefined ? window._c+1 : 0 %><%= window._c %>!@#_anchor);