why you don't need console.log

  Рет қаралды 31,923

Visual Studio Code

Visual Studio Code

Күн бұрын

Пікірлер: 74
@bishal_mishra99
@bishal_mishra99 13 күн бұрын
Cool. How do you log dynamic values
@harshitgupta275
@harshitgupta275 10 күн бұрын
Did you find any answer?
@ulfgj
@ulfgj 9 күн бұрын
this we need.
@DJReRun
@DJReRun 7 күн бұрын
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?
@christopherfox6914
@christopherfox6914 7 күн бұрын
If you mean variables, use {variablename} in your log point message.
@vulkanosaure
@vulkanosaure 12 күн бұрын
It's a great advice for people who aren't using a debugger
@dantek3050
@dantek3050 3 күн бұрын
".. there are two types of people" applies heavily in this matter
@elProdigio
@elProdigio 13 күн бұрын
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.
@muraliavarma
@muraliavarma 11 күн бұрын
This feature also exists in the chrome dev tools btw. Very useful for quick debugging on the browser
@dytra_io
@dytra_io 11 күн бұрын
does this feature supports expression/variable ? because I often console log the request/response
@mahmood466
@mahmood466 13 күн бұрын
Does it support string interpolation, something like "here value is ${value}"?
@SwoggersLOL
@SwoggersLOL 11 күн бұрын
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
@VishalPawarR
@VishalPawarR 13 күн бұрын
Looks clean but removing the logpoint console after adding is an extra step!
@nicolasmayorga8288
@nicolasmayorga8288 12 күн бұрын
That's amazing but what if I need to log a variable?
@ayviuon
@ayviuon 11 күн бұрын
Multiple steps just to put a logpoint seems like alot of hassle, writing console log is quicker 🤷‍♂️
@joergw
@joergw 13 күн бұрын
Thanks, never heard about log points before
@good-dev-student
@good-dev-student 13 күн бұрын
Cool any other tricks like this ❤
@AkukweEbube
@AkukweEbube 13 күн бұрын
Didn't know about this. Nice one
@anu1o
@anu1o 13 күн бұрын
Awesome 👍🏻 🔥
@asanka.abewickrama
@asanka.abewickrama 13 күн бұрын
Wow, that's very helpful for me.🎉
@tubero911
@tubero911 13 күн бұрын
Works in other languages too: python, dart, lua, and java.
@mick_io
@mick_io 6 күн бұрын
Still waiting on VS Code to offer a full feature mouse free workflow. Till then, nope.
@caujka
@caujka 13 күн бұрын
Blimey, this is so awesome!
@deheinrich4785
@deheinrich4785 13 күн бұрын
This hint came just in time thanks! Will these Statements appear in the terminal that I do npm run dev with?
@jakubtomas21
@jakubtomas21 13 күн бұрын
What if want to see data in property? Like response data
@second9320
@second9320 13 күн бұрын
All pushes with log or todo give warning these days. What is this for?
@DanielEnesi17
@DanielEnesi17 13 күн бұрын
Wow. That's awesome - and convenient. Thanks!
@ayivugwekabemba
@ayivugwekabemba 12 күн бұрын
Wow. Thank you. I didn't know this one.
@investkalimot7499
@investkalimot7499 12 күн бұрын
how to logs the variables?
@shivjirwankar1993
@shivjirwankar1993 13 күн бұрын
Awesome. Much needed feature.
@ste-fa-no
@ste-fa-no 13 күн бұрын
Would those be exportable/importable?
@martygo
@martygo 13 күн бұрын
Awesome 🎉
@mohamedkarim-p7j
@mohamedkarim-p7j 13 күн бұрын
Thank for sharing
@alihelmi
@alihelmi 12 күн бұрын
How to log variables?
@VictorMartins239
@VictorMartins239 12 күн бұрын
can it log variables? it doesnt look it does
@rajgopaljakhmola6080
@rajgopaljakhmola6080 12 күн бұрын
But what about logging into the browser?
@Twas-RightHere
@Twas-RightHere 7 күн бұрын
Doesn't work for client code though, which is what most react apps are...
@debjyotibanerjee6382
@debjyotibanerjee6382 13 күн бұрын
Will the log points be visible in browser console?
@mukundm2023
@mukundm2023 13 күн бұрын
Does it work for all major languages or just js?
@rotimibest8530
@rotimibest8530 13 күн бұрын
How do I remove log points?
@henryantwi8222
@henryantwi8222 13 күн бұрын
This is very useful 👌 👍
@wzup23
@wzup23 13 күн бұрын
Wow! Thus one's great feature.
@arturomedina2055
@arturomedina2055 13 күн бұрын
Does this work with tools like Vite?
@prana-ayama
@prana-ayama 13 күн бұрын
Will the registered logpoints be shared with git?
@kingmaxilla
@kingmaxilla 13 күн бұрын
👍🙂👍
@ruralanemone6633
@ruralanemone6633 7 күн бұрын
convenient, yeah portable, no hello monopoly?????
@prajwalitsinghraja3196
@prajwalitsinghraja3196 13 күн бұрын
I will give it a try, it's worth it, I think so.
@Redragon2501
@Redragon2501 11 күн бұрын
Can't make it work in my vue.js app
@pang12345
@pang12345 13 күн бұрын
Is that only possible in debug mode?
@TheAbhishekJadhav
@TheAbhishekJadhav 12 күн бұрын
Ftw why haven’t I seen this earlier 😮
@rahulpurohit6246
@rahulpurohit6246 13 күн бұрын
Does it work for react native
@NilisW
@NilisW 13 күн бұрын
Good one
@rakysreplays8259
@rakysreplays8259 13 күн бұрын
Very useful, thanks
@sssrikanthhh
@sssrikanthhh 11 күн бұрын
Nice trick 👍
@armangohari6193
@armangohari6193 13 күн бұрын
Nice one.
@4w0ken
@4w0ken 13 күн бұрын
or just, and maybe im tripping, use the debugger
@beyondcrud
@beyondcrud 12 күн бұрын
Wow very helpful
@TheBambooooooooo
@TheBambooooooooo 13 күн бұрын
Beautiful
@samnmeje3486
@samnmeje3486 12 күн бұрын
this is awesome
@hanibachi5228
@hanibachi5228 13 күн бұрын
Now thats a usefull short
@applernb3773
@applernb3773 12 күн бұрын
The point is Not much visible though
@rockmonty
@rockmonty 11 күн бұрын
👍
@marlo3464
@marlo3464 13 күн бұрын
this does not gonna work in production. It is ok for frontend, but for backend you critically need to have logging in your system
@samuelvalentine7846
@samuelvalentine7846 11 күн бұрын
This is niceee
@biggaji0
@biggaji0 13 күн бұрын
great feature
@sergiobenitez1468
@sergiobenitez1468 13 күн бұрын
this is gold
@stonecoder8697
@stonecoder8697 13 күн бұрын
This is big for I.
@yassine-sa
@yassine-sa 13 күн бұрын
That's neat
@JermaineMorgan
@JermaineMorgan 13 күн бұрын
Get outta here!!!!
@OggVorbis69
@OggVorbis69 13 күн бұрын
Now does the log statements appear in the source?
@khatmanworld
@khatmanworld 13 күн бұрын
Not sold. Thanks. Console.log for life
@yassinebenkraouda
@yassinebenkraouda 13 күн бұрын
Console.log is good why drop it?
@stefancomandant8683
@stefancomandant8683 13 күн бұрын
Nope, mine say console.log("shit1") console.log("shit2") console.log("shit3")
zig will change programming forever
9:34
Low Level
Рет қаралды 414 М.
Microsoft FINALLY killed it
6:45
Alex Ziskind
Рет қаралды 694 М.
JISOO - ‘꽃(FLOWER)’ M/V
3:05
BLACKPINK
Рет қаралды 137 МЛН
Their Boat Engine Fell Off
0:13
Newsflare
Рет қаралды 15 МЛН
the 7 levels of game developers
10:58
samyam
Рет қаралды 56 М.
Why is every React site so slow?
13:52
Theo - t3․gg
Рет қаралды 166 М.
15 Years Writing C++ - Advice for new programmers
4:04
SyncMain
Рет қаралды 1,3 МЛН
7 Amazing Terminal API Tools You Need To Try
14:57
DevOps Toolbox
Рет қаралды 44 М.
Javascript's New Pipeline Operator Is Awesome!
7:26
Jack Herrington
Рет қаралды 61 М.
Zed “kills” VSCode
12:10
Alex Ziskind
Рет қаралды 931 М.
2 Years of C++ Programming
8:20
Zyger
Рет қаралды 353 М.
Replace Is Number Saves 440GB A WEEK
9:54
ThePrimeagenClips
Рет қаралды 405 М.
Python for Beginners - Learn Coding with Python in 1 Hour
1:00:06
Programming with Mosh
Рет қаралды 20 МЛН
"groupby" in Python is Awesome
8:56
Indently
Рет қаралды 31 М.
JISOO - ‘꽃(FLOWER)’ M/V
3:05
BLACKPINK
Рет қаралды 137 МЛН