Fixes tagged Debugging
7 fixes · back to all fixes
My href regex found 0 links on a page with 101 of them
A link-extraction regex returned nothing on a page full of links. The page was fine. It ships minified HTML, where quotes around an attribute value are optional, so href=/media/x.pdf matches nothing that expects href="...".
5 min read →
ENOENT: scandir in CI, green on my machine, and the path was correct
A vitest suite passed locally on every run and failed the first CI job with ENOENT: scandir. The path was not wrong. The test read its fixture corpus by absolute path from a sibling repository, so a CI checkout of one repo could never contain it. The bug is a test depending on state outside the artifact under test.
3 min read →
A log write killed the job it was logging, and the exit code still said 0
$ErrorActionPreference = 'Stop' is the setting every PowerShell guide recommends. It also promotes a failed Add-Content into a terminating error, so a file lock on the log file aborts the run from a line that does not matter, in the middle of work that does.
3 min read →
IDP.HELU.PSE85: the antivirus killed my script silently, and it was right to be suspicious
A script that read a local credential file and POSTed it onward stopped running. No error, no exit code, no log line, no popup. It matched the behavioural signature of a token stealer, and the fix was to stop looking like one rather than to add an exception.
5 min read →
IndentationError on a line that is a comment, because a backtick in it ran as a shell command
A git hook broke on every commit with an IndentationError pointing at a comment. The comment mentioned a command in backticks, the whole Python program was inside a double-quoted shell argument, and the shell had run the command and pasted its output into the source.
5 min read →
Two config keys differing only by a drive letter's case, and half your settings vanish
A tool registered a server, listed it as connected, and never loaded it. The config file held C:\Dev\Base and c:\Dev\Base as separate keys. One process wrote to one, the other read from the other, and both were behaving correctly.
5 min read →
MCP error -32000: Connection closed means your server crashed before it said hello
The client reports a transport error and nothing else. The server's real traceback went to a stderr nobody is showing you. Pipe a raw initialize handshake into the exact command from your config and the crash prints in your terminal.
5 min read →