I’m sure the Astral tools are all very useful but, controversial opinion here, my preferred way to debug Python code is by reading and understanding it…
There are programmers, and there are people who solve problems using computers, for whom programming is one means to an end.
As you say, the programs may be ephemeral, while the solutions have lasting consequences.