console.trace(); shows call stack. useful with nested functions
@nicolashervy75446 жыл бұрын
Console.assert can be handy if you only want to print to log when something gone wrong. Thanks for many good videos👌
@kushp64866 жыл бұрын
Waiting for the next video. Had no idea console.time exists before
@nekoill4 жыл бұрын
Found this one in my suggestions, subscribed immediately. Great tips!
@SKU0096 жыл бұрын
Today I learned about console.time and console.table. Thanks Techsith
@Techsithtube6 жыл бұрын
I am glad you learnt something new. Keep learning!
@tomgabauer98786 жыл бұрын
Thanks for another great vid! As a new learner, these really help me. Cheers.
@jared49416 жыл бұрын
Just wanted to say thank for all your videos. I'm currently in school for coding and your videos have been such a great help.
@sudhakarlahane72292 жыл бұрын
Thank you again! Every time I get & learn something new from your videos! Lovejoy video 👌
@brak515 жыл бұрын
I am learning Javascript for work, since I inherited a job that is all about JS security, troubleshooting, so this video was very helpful. Please make more like it. Thanks
@Techsithtube5 жыл бұрын
Yes, debugging is an art. especially inside the inspector. I will create some advance topics on debugging for sure. Thanks for watching!
@abhinandsagar37365 жыл бұрын
This video has a Separate Fan Base ;) I'll be expecting to see the sequel of this.
@PrabhakarBangalore6 жыл бұрын
You can little cover the watch section where you can add variables to see it's value change separately inside source tab.
@Techsithtube6 жыл бұрын
Good point . thanks for sharing.
@phplaw6 жыл бұрын
Just clicked on the Ad to support you, very good video
@Techsithtube6 жыл бұрын
Thanks sunny . I appreciate your support!
@spd12703 жыл бұрын
Thanks @techsith for helping us to get better in our job!
@Techsithtube3 жыл бұрын
Glad to have helped. Keep on learning!
@jonydude6 жыл бұрын
This was my first exposure to your work. I remember thinking, "These tips are either going to be so obvious, I already know them, or so advanced they're not applicable to any of my current projects." I want you to know, this prediction was wrong about every single tip you presented. None of them I knew, and none of them are useless to me.
@Techsithtube6 жыл бұрын
What was the biggest surprise? Just curious.
@jonydude6 жыл бұрын
techsith I don’t think things I don’t know can be ranked by size, as I didn’t know any of them, but the most influential is to stop debugging with alerts. I don’t just debug with alerts, I build with alerts. I test every if statement with an alert before filling it.
@viraldimention6 жыл бұрын
Awesome tutorial, Loved it. A little request here to make part 2 with, I mean more cool stuff, like conditional breakpoints, call satck, watch, scope, performance tab, memory tab etc. Thanks
@Techsithtube6 жыл бұрын
That is the plan . Will try to release it next week .
@phanCAbe5 жыл бұрын
Wow. Outstanding content, that may have been the most professionally useful thing I've seen all year...
@buncha14996 жыл бұрын
Thanks again TechSith! Great stuff!
@piotrkniaz46956 жыл бұрын
great video! Debugger is something that can replace every .log i can't imagine my work without debugger notably when we want to refactor very big application it can save a lot of our time. So I am waiting for debbuger video and maybe i will know a litle bit more :)
@MegaLearningStuff6 жыл бұрын
you mean debugger; or something else ?
@piotrkniaz46956 жыл бұрын
regarding to your question , i mean debugger;
@Pareshbpatel3 жыл бұрын
Great Intro to Debugging in JS. Thanks. {2021-08-04}
@PrashadDey6 жыл бұрын
Hello! Could you make a playlist for "You Don't Know JS" - 6 books series by Kyle Simpson, describing some of the important concepts of js? It will be very beneficial to you and your viewers as well?
@3jyothi4 жыл бұрын
Cool tricks ☺ waiting for its sequel.
@Techsithtube4 жыл бұрын
Coming soon!
@masibhai3395 жыл бұрын
Waiting for next videos doing great job.really appreciate that
@balanepalaiyathane97144 жыл бұрын
Really Good tutorial you are taking of care all people especially who wants to start career... This is called real help for the community...
@rajashekhar4335 жыл бұрын
javascript profiler? Performance?
@abhishek_k75 жыл бұрын
Loved this video. If possible, can you make videos on each Chrome Dev Tools tabs? I just know the basics of Networking, Audits and Sources tabs. Would like to learn more about all the available tools in depth.
@shoaibah6 жыл бұрын
Array.from() will also create a copy. Curious to know the difference between Array.from and JSON.parse(JSON.stringify)
@DontStopMoveOn5 жыл бұрын
Also [...array]
@MrPDTaylor6 жыл бұрын
Is there a similar function that creates a table from an object that is useful in the actual body of code?
@roshnikutty42526 жыл бұрын
Great video! Looking forward to its sequel!
@alena4225 жыл бұрын
love your videos, thank you very much! :)
@ayk24126 жыл бұрын
Excellent stuff as always!
@kathirvelponnusamy6 жыл бұрын
Wow.. awesome ☺️ .. one tiny suggestion.. just modify the 'trics' to 'tricks' in title if possible.. I was trying to search 'tricks and tips' but I didn't get this video listed in search results...
@utpalkant63544 жыл бұрын
You don't know but you helped us a lot. Gratitudes for you 🙏
@Techsithtube4 жыл бұрын
Utpal, keep on learning! Thanks for the comment.
@ivanskubko91775 жыл бұрын
Instead of console.log(JSON.parse(JSON.stringify(x))) you could do much more readable syntax console.log([...x]) for arrays
@bobmarleyy19764 жыл бұрын
Yes but last one is a shallow copy. Nested array will keep their reference too in that case, so with parse and stringify you're sure to clone deep objects
@hamsteroncoffee6 жыл бұрын
Great tutorial! I did not know the "pretty print" at the end of this. Pretty cool stuff. Thank you for sharing. Also, if you haven`t done this already: could you please make a video about debugging Node/ API calls? This has been killing me recently :( Many thanks in advance!
@jonnyzheng4193 жыл бұрын
I would suggest this code for log debug: let a = 1; let b = 2 console.log({a, b}); // This code would show the variable name and there value.
@evan58546 жыл бұрын
Make these vids longer bro, good stuff
@bhushi57646 жыл бұрын
Very useful information you shared. Thanks!!!
@WasimKhan-08016 жыл бұрын
Nice trick and Trip sir it will really help in development. Sir is there any replacement of moment.js who works really good in any time zone because moment giving wrong results of display date in some time zone eg. Check with Sydney or apia time zone
@dearvivekkumar6 жыл бұрын
I havev seen peoples debugging badly writtenjQuery code and they have hard time finding the handler function for any element. Using the event inside of right section of the source tab is very helpful as chrome debuggers stops automatically at the handler function and we can blackscript library code. I will try to post the screenshot when I will be on my PC Second is the DOM breakpoint to know which code in the source is modifying the attributes or subtree Conditional breakpoint for debugging code inside of loop or frequently called function Watching variable is another one
@MegaLearningStuff6 жыл бұрын
please do :)
@adityaghosalkar4316 жыл бұрын
the most irritating problem while debugging javascript in chrome is you constantly land in some javascript library which you are using while debugging your own code do you have any tricks to solve that
@MegaLearningStuff6 жыл бұрын
yes, blackbox it, just right click it is there, next time it will skip over :)
@Techsithtube6 жыл бұрын
put a debugger in your code and it will always stop into your code and then if its a loop . just click continues and it will stop at the next debugger . So you don't have to do next next next each time and go through some other lib.
@npaul14405 жыл бұрын
Your tutorials are really awesome
@janaks70166 жыл бұрын
Very useful videos, thank you bro
@malvikatiwari38574 жыл бұрын
Hello, I have a question regarding JavaScript, Can you help with that? Actually I need to know the inbuilt libraries of javascript to fetch data from a third party API.
@malvikatiwari38574 жыл бұрын
@techsith can you name all the inbuilt libraries for this purpose?
@rahulvanave6 жыл бұрын
Call stack in chrome Explain this to others It's really useful in execution
@Techsithtube6 жыл бұрын
Yes , that would be a good topic to cover. Thanks for the suggestion.
@rohitkudalkar925 жыл бұрын
Above trick was really helpful. Sir can you please make a separate video only on debugging. How to improve debugging react Application in VScode or in chrome. thanks
@Techsithtube5 жыл бұрын
Rohit, I do have a plan for such series. I will plan for it. Thanks for the suggestion.
@rohitkudalkar925 жыл бұрын
@@Techsithtube, curious to learn new debugging skills from you, sir. Thanks
@dubeykivines92024 жыл бұрын
Nice Information shared thanks
@alokranjan4766 жыл бұрын
Nice one😊👍 Please make video for other tabs also.
@Carl-yu6uw5 жыл бұрын
Great stuff! Thank you.
@dillikathirvel86286 жыл бұрын
Super techsith. For console.table
@VijayaKumar-qy6oj6 жыл бұрын
Seems your tips may useful for beginner's (below 1 year experience). People updating more we think.
@lahotiashish4 жыл бұрын
Here is the written version of this video:- codingnconcepts.com/javascript/debugging-tricks-javascript/
@vikashire52925 жыл бұрын
Yes. Thanks for these tricks. Please make a video on developer tools in chrome.
@Techsithtube5 жыл бұрын
Yes that would be an interesting video. Thanks for the suggestion.
@vikashire52925 жыл бұрын
@@Techsithtube we will wait for that.
@brunofunnie6 жыл бұрын
Nice stuff, but it's really basic, it was already on my mindset of debug tools. It would be great if you dive into Memory Leaking detection, that's a very interesting subject for a video. How to identify, how to identify in a big project, using comparison snapshots checking for delta values... nice video thou
@phemant246 жыл бұрын
Very informative, thank you
@karthikpa6 жыл бұрын
Very useful tricks.
@Techsithtube6 жыл бұрын
Thanks for watching Karthikeyan.
@hiteshchoudhary34126 жыл бұрын
Please do more videos like this
@welterdavin54866 жыл бұрын
spot on
@johnywalkie6 жыл бұрын
console.log("%c I am red", "color: red");
@Techsithtube6 жыл бұрын
That is also a cool trick Thanks for sharing!
@brianserious5 жыл бұрын
@@Techsithtube sounds like you might get a http 418 from that :)
@rajesharya36455 жыл бұрын
Awesome..............
@hamidrezakazemi77466 жыл бұрын
console.time & table is awesome. for nodeJS debugging --> chrome://inspect section and run node file with --inspect
@sudarsanapilli83715 жыл бұрын
Hi techsit, after creating an array in console. let a= [1,2,3]; console.log(a); --> my console showing "undefined " output:-- >>undefined --> how to see the output . any suggestions are highly appriciated
@Techsithtube5 жыл бұрын
in the console you simply type a , dont use console.log(a)
@davvar1004 жыл бұрын
instead of let a = 'a' , b = 'b' console.log( 'a :', a ,'b :',b ) you can do console.log( { a, b } ) and get { a: {}, b:{} }
@damilolaolowookere76586 жыл бұрын
Man you're awesome!!
@Techsithtube6 жыл бұрын
Thanks for an awesome comment. :) Keep learning!
@doaahashim73206 жыл бұрын
Like like like it helped me a lot thank you
@himanshushekhar36944 жыл бұрын
really cool video
@PrashadDey6 жыл бұрын
Worthful video.
@j.almadhaji6 жыл бұрын
new useful tricks for me thank you sir
@welterdavin54866 жыл бұрын
good for you
@sunilkumar-zf4dx6 жыл бұрын
Wow very useful stuff..
@kirankumar-zf9yd6 жыл бұрын
Good 1, can you please come up with event looping in your next video...??
@Techsithtube6 жыл бұрын
You mean Concurrency model and Event Loop?
@sushantkunkekar21556 жыл бұрын
@@Techsithtube how to debug loop and funtions exclusively
@kirankumar-zf9yd6 жыл бұрын
Yeah, It would be great to hear from you because most of the people will learn how js engine reads sync and async events...
@Techsithtube6 жыл бұрын
Got it. I will add that to the sequal to this video . Thanks for the suggestion
@mtmecax6 жыл бұрын
helpful video
@rounakjain57746 жыл бұрын
Instead of console.log('aaaa', 'x: ', x, 'y: ',y), use console.log({x, y})
@AshwaniSharma-vg5xm4 жыл бұрын
Nice
@RanjeetKumar-gg7ie4 жыл бұрын
awesome :)
@sandeepsandy2146 жыл бұрын
Thank you guruji
@Techsithtube6 жыл бұрын
Thank you Sandeep for watching!
@sandeepsandy2146 жыл бұрын
I am a huge fan for u
@Oswee5 жыл бұрын
Tnx for console.time() ! :)
@Techsithtube5 жыл бұрын
Yes Console.time is pretty cool
@DamianNAudio5 жыл бұрын
I wouldn't ask for help translating your videos, programming is all about English. And math.
@andriiauziak11785 жыл бұрын
nice comment))
@Techsithtube5 жыл бұрын
Thanks for the nice comment brother.
@andriiauziak11785 жыл бұрын
@@Techsithtube Thanks for what you are doing, Sir. By the way, is it possible to know, how much people from different countries watching your youtube channel
@believeme63106 жыл бұрын
Hii sir
@believeme63106 жыл бұрын
And also I am first viewer
@weichengye37365 жыл бұрын
console.log({a});
@believeme63106 жыл бұрын
This is my first comment
@kuba57642 жыл бұрын
asd
@juleswinnfield99316 жыл бұрын
console.debug();
@farshidbahmanian5 жыл бұрын
Not really useful stuff, but thanks
@MrityunjayKumar-v3e11 ай бұрын
dur boor
@handsome_man696 жыл бұрын
when is chrome dev tools going to improve with debugging closures? I always get no reference error, or undefined error when looking at variables. Granted this also happens when I debug in webstorm.
@Techsithtube6 жыл бұрын
I think the chrome dev tool is pretty advanced. undefined is because it's probably out of scope.