We all know as JS developers that debugging is a painful process. One simple way to unblock a certain situation is to write meaningful log messages, so that we can locate the problem and fix it.
The problem with writing log messages manually is that they take so much time and effort.
So why not just automate this process ?
I'm glad to announce Turbo Console Log extension which aims to fix this particular problem. All it takes to insert a log message is to select the variable that is subject of the debugging and press ctrl + shift + l or cmd + shift + l so that a log message will be inserted in the next line.
The log message has the following format:
console.log(VariableEnclosingClassName -> VariableEnclosingFunctionName -> Variable, Variable);
Link of the extension in the store: https://marketplace.visualstudio.com/items?itemName=ChakrounAnas.turbo-console-log
Link of the project in github: https://github.com/Chakroun-Anas/turbo-console-log
Thanks.