2025/05/07 #

Bionic man

This whole transition to using AI tools is going to be very complex. Of course that's nothing new to hear, but I get a sense that some are starting to get a feel for the size of the issue at hand. Reality is very very complicated and it took humanity literally millions of years in a shared reality to build the current non-AI "solution". I feel like we need to be careful, but also not too careful, sometimes you have to press on reguardless. But also, empathy, kindness. #

Running my static generator in the VSCode debugger

I configured the VSCode debugger to run my static site generator. It's been a while since I've been debugging like this. It's awesome to finally see the code running with all the debug tools. Makes it so much easier to get back into code that I wrote years ago. I wanted to make a quick note of it here, it's one of those things that you configure then don't think about for ages. Now I can refresh my brain with this blog post.

Crucially VSCode supports debugging programs launched via npm. Since I use npm scripts to run my code locally and in Github actions, I wanted to use the same method in the debugger.

The trick to getting it working was to use the npm launch configuration, and to also add a new 'debug' npm script, which was a copy of the existing 'build' npm script but with the additional '--inspect' node arg. Then when you run the debugger in VSCode, and after you have set a breakpoint somewhere near the top of your code, the command line window opens, and VSCode runs the program, halting at your breakpoint and you can step through the code, examining variables, callstacks and use all sorts of other cool tools. #

Today’s links:

For enquiries about my consulting, development, training and writing services, aswell as sponsorship opportunities contact me directly via email. More details about me here.