Also, where is the "log point" stored? Is it in an external file that's _near_ to the source so that it can be tracked by source control or is it only local to VSCode and the current user?
Nice feature. Before this feature exists I remember to use conditional breakpoints to put console.log inside of the condition (it never stops because console.log return a falsy value). I also use conditional breakpoints to change some data conditionally. For example change user variable to "test" when the amount value is 999. This code will be into the condition of the breakpoint: amount === 999 && user="test" && false About the video the only "but" is that you need to run the code into a debug session (slower), and depending on how the protect is configured, is not always possible to debug.
Cool. How do you log dynamic values
Did you find any answer?
this we need.
Also, where is the "log point" stored? Is it in an external file that's _near_ to the source so that it can be tracked by source control or is it only local to VSCode and the current user?
If you mean variables, use {variablename} in your log point message.
Nice feature. Before this feature exists I remember to use conditional breakpoints to put console.log inside of the condition (it never stops because console.log return a falsy value). I also use conditional breakpoints to change some data conditionally. For example change user variable to "test" when the amount value is 999. This code will be into the condition of the breakpoint:
amount === 999 && user="test" && false
About the video the only "but" is that you need to run the code into a debug session (slower), and depending on how the protect is configured, is not always possible to debug.
It's a great advice
for people who aren't using a debugger
This feature also exists in the chrome dev tools btw. Very useful for quick debugging on the browser
Does it support string interpolation, something like "here value is ${value}"?
does this feature supports expression/variable ? because I often console log the request/response
Thanks, never heard about log points before
Yea, but you could merge the print statements into a write stream function so that you could make a log file at the same time you're printing logs
Cool any other tricks like this ❤
Looks clean but removing the logpoint console after adding is an extra step!
This hint came just in time thanks!
Will these Statements appear in the terminal that I do npm run dev with?
That's amazing but what if I need to log a variable?
Wow. That's awesome - and convenient.
Thanks!
Awesome 👍🏻 🔥
Thank for sharing
Didn't know about this. Nice one
Works in other languages too: python, dart, lua, and java.
Blimey, this is so awesome!
Wow, that's very helpful for me.🎉
All pushes with log or todo give warning these days. What is this for?
Awesome. Much needed feature.
Wow. Thank you. I didn't know this one.
Would those be exportable/importable?
Multiple steps just to put a logpoint seems like alot of hassle, writing console log is quicker 🤷♂️
Awesome 🎉
Doesn't work for client code though, which is what most react apps are...
Does it work for all major languages or just js?
What if want to see data in property? Like response data
But what about logging into the browser?
Does this work with tools like Vite?
Will the log points be visible in browser console?
how to logs the variables?
Wow! Thus one's great feature.
This is very useful 👌 👍
convenient, yeah
portable, no
hello monopoly?????
Will the registered logpoints be shared with git?
How to log variables?
can it log variables? it doesnt look it does
Ftw why haven’t I seen this earlier 😮
I will give it a try, it's worth it, I think so.
Is that only possible in debug mode?
Good one
Very useful, thanks
How do I remove log points?
Nice one.
Can't make it work in my vue.js app
Does it work for react native
this does not gonna work in production. It is ok for frontend, but for backend you critically need to have logging in your system
or just, and maybe im tripping, use the debugger
Beautiful
Wow very helpful
Now thats a usefull short
Nice trick 👍
this is awesome
👍🙂👍
This is niceee
The point is Not much visible though
great feature
This is big for I.
this is gold
That's neat
👍
Get outta here!!!!
Now does the log statements appear in the source?
Not sold. Thanks. Console.log for life
Console.log is good why drop it?
Nope, mine say
console.log("shit1")
console.log("shit2")
console.log("shit3")