Um, if you joined us last week, it was interesting because everything went wrong and we uh sputtered and crashed in a burning ball of flames and we had to cancel the stream.
And so we're back, but listen, listen, we fired everybody that was involved with that, um, I'm on probation now, it's probably my last stream, so we got to get this one right.
Sometime we sometimes we have release parties, sometimes we have guests on, sometimes we bring in folks from Microsoft to give in-depth talks like we're doing today.
Um, and with the debugger, it came like a bunch of new features including the notion of of multi-target debugging, which means we can debug things like service workers, web workers, and Node.js worker threads.
As well as um, performance and an increased focus on making easier to like onboard for for users who never use debugging to actually get debugging and debugging using VS Code.
And so worker threads are really useful if you have expensive computation that you don't want to do on main thread because even though uh like IO inside of Node.js is asynchronous, as you probably know.
So uh first off, if you've been using um, or if you've been writing JavaScript code in VS Code for a while, you've probably noticed the debug codelens here.
Um, and if I had if I had multiple if I had multiple scripts here, then you would have gotten like a quick pick asking you which one you wanted to actually debug.
Then you see that we're just paused and you can see actually in the call stack view here that we're paused not in the main process here, but a worker thread.
Yeah, so it looks like this is going through a list of like all all English words and then it's it's looking at the the edit distance between them and getting the most similar words.
So the edit distance is just um, a number that indicates the number of of kind of mutations or changes that you have to make to a certain string to get to another string.
And then if you don't have the extension installed, it's actually a separate extension, but if you don't have it installed, then it'll have you install it right there.
Then most often what happens is that a single call isn't that slow, but then when you have hundreds of hundreds of calls that are like each individually taking a lot of time.
And then and then like you can see that, yeah, like as we thought, in this case, uh, basically all the time is spent in the slow in the slow check function here.
Uh, something you have to note in like one common one common confusion is that if you just have um, like the the debug terminal open and you open um, a browser just like in a different URL.
And uh, we've been working really hard with the VS Code team to integrate some of the features that you know and love from your browser Dev Tools directly into VS Code.
If you have um hot module reloading or any uh kind of like a gulp server running in the background too, because you'll see these changes automatically as you're saving and editing.