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?
@christopherfox69147 күн бұрын
If you mean variables, use {variablename} in your log point message.
@vulkanosaure12 күн бұрын
It's a great advice for people who aren't using a debugger
@dantek30503 күн бұрын
".. there are two types of people" applies heavily in this matter
@elProdigio13 күн бұрын
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.
@muraliavarma11 күн бұрын
This feature also exists in the chrome dev tools btw. Very useful for quick debugging on the browser
@dytra_io11 күн бұрын
does this feature supports expression/variable ? because I often console log the request/response
@mahmood46613 күн бұрын
Does it support string interpolation, something like "here value is ${value}"?
@SwoggersLOL11 күн бұрын
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
@VishalPawarR13 күн бұрын
Looks clean but removing the logpoint console after adding is an extra step!
@nicolasmayorga828812 күн бұрын
That's amazing but what if I need to log a variable?
@ayviuon11 күн бұрын
Multiple steps just to put a logpoint seems like alot of hassle, writing console log is quicker 🤷♂️
@joergw13 күн бұрын
Thanks, never heard about log points before
@good-dev-student13 күн бұрын
Cool any other tricks like this ❤
@AkukweEbube13 күн бұрын
Didn't know about this. Nice one
@anu1o13 күн бұрын
Awesome 👍🏻 🔥
@asanka.abewickrama13 күн бұрын
Wow, that's very helpful for me.🎉
@tubero91113 күн бұрын
Works in other languages too: python, dart, lua, and java.
@mick_io6 күн бұрын
Still waiting on VS Code to offer a full feature mouse free workflow. Till then, nope.
@caujka13 күн бұрын
Blimey, this is so awesome!
@deheinrich478513 күн бұрын
This hint came just in time thanks! Will these Statements appear in the terminal that I do npm run dev with?
@jakubtomas2113 күн бұрын
What if want to see data in property? Like response data
@second932013 күн бұрын
All pushes with log or todo give warning these days. What is this for?
@DanielEnesi1713 күн бұрын
Wow. That's awesome - and convenient. Thanks!
@ayivugwekabemba12 күн бұрын
Wow. Thank you. I didn't know this one.
@investkalimot749912 күн бұрын
how to logs the variables?
@shivjirwankar199313 күн бұрын
Awesome. Much needed feature.
@ste-fa-no13 күн бұрын
Would those be exportable/importable?
@martygo13 күн бұрын
Awesome 🎉
@mohamedkarim-p7j13 күн бұрын
Thank for sharing
@alihelmi12 күн бұрын
How to log variables?
@VictorMartins23912 күн бұрын
can it log variables? it doesnt look it does
@rajgopaljakhmola608012 күн бұрын
But what about logging into the browser?
@Twas-RightHere7 күн бұрын
Doesn't work for client code though, which is what most react apps are...
@debjyotibanerjee638213 күн бұрын
Will the log points be visible in browser console?
@mukundm202313 күн бұрын
Does it work for all major languages or just js?
@rotimibest853013 күн бұрын
How do I remove log points?
@henryantwi822213 күн бұрын
This is very useful 👌 👍
@wzup2313 күн бұрын
Wow! Thus one's great feature.
@arturomedina205513 күн бұрын
Does this work with tools like Vite?
@prana-ayama13 күн бұрын
Will the registered logpoints be shared with git?
@kingmaxilla13 күн бұрын
👍🙂👍
@ruralanemone66337 күн бұрын
convenient, yeah portable, no hello monopoly?????
@prajwalitsinghraja319613 күн бұрын
I will give it a try, it's worth it, I think so.
@Redragon250111 күн бұрын
Can't make it work in my vue.js app
@pang1234513 күн бұрын
Is that only possible in debug mode?
@TheAbhishekJadhav12 күн бұрын
Ftw why haven’t I seen this earlier 😮
@rahulpurohit624613 күн бұрын
Does it work for react native
@NilisW13 күн бұрын
Good one
@rakysreplays825913 күн бұрын
Very useful, thanks
@sssrikanthhh11 күн бұрын
Nice trick 👍
@armangohari619313 күн бұрын
Nice one.
@4w0ken13 күн бұрын
or just, and maybe im tripping, use the debugger
@beyondcrud12 күн бұрын
Wow very helpful
@TheBambooooooooo13 күн бұрын
Beautiful
@samnmeje348612 күн бұрын
this is awesome
@hanibachi522813 күн бұрын
Now thats a usefull short
@applernb377312 күн бұрын
The point is Not much visible though
@rockmonty11 күн бұрын
👍
@marlo346413 күн бұрын
this does not gonna work in production. It is ok for frontend, but for backend you critically need to have logging in your system
@samuelvalentine784611 күн бұрын
This is niceee
@biggaji013 күн бұрын
great feature
@sergiobenitez146813 күн бұрын
this is gold
@stonecoder869713 күн бұрын
This is big for I.
@yassine-sa13 күн бұрын
That's neat
@JermaineMorgan13 күн бұрын
Get outta here!!!!
@OggVorbis6913 күн бұрын
Now does the log statements appear in the source?
@khatmanworld13 күн бұрын
Not sold. Thanks. Console.log for life
@yassinebenkraouda13 күн бұрын
Console.log is good why drop it?
@stefancomandant868313 күн бұрын
Nope, mine say console.log("shit1") console.log("shit2") console.log("shit3")