dmesg --follow
[ 71978340.000 ] posts.x: Full talk on building graphs worth querying and the algorithms that make use of them, from personalized PageRank to subgraph pattern matching:  |   [ 71978340.000 ] posts.x: Most teams that reach for GraphRAG or a graph database hit a valley of despair when the payoff doesn't show up right away. @timainge, a software…  |   [ 71969820.000 ] posts.x: Full talk on what it actually costs to keep renting inference, and when to stop:  |   [ 71969820.000 ] posts.x: One of the largest retailers in the country spent close to $200 million on inference with Anthropic before deciding to build its own infrastructure…  |   [ 71961900.000 ] posts.x: Full talk on turning hypothesis generation into an explicit, documented step in an agent's research loop:  |   [ 71961900.000 ] posts.x: Coding agents are great at running an optimization loop against a metric, tuning a model until it saturates. What saturates first isn't execution…  |   [ 71956560.000 ] posts.x: @htahir111 @aiDotEngineer Thanks for the talk!  |   [ 71953680.000 ] posts.x: Full talk on checkpointing, replay, and why cohort-level testing beats a single model swap:  |   [ 71953680.000 ] posts.x: Agents don't have a save button yet. The only thing close is a trace, and a trace is read-only, disconnected from the actual code and state that…  |   [ 71939640.000 ] posts.x: Full talk on why TypeScript passed Python as GitHub's top language, and what the shift means for where agents actually get built:  |   [ 71939640.000 ] posts.x: GitHub's own report called it two different ways in two years: "AI leads Python to top language" for 2024, "AI leads TypeScript as the first…  |   [ 71897160.000 ] posts.x: Full talk on why frontier models keep rediscovering the same old vulnerability classes, and what actually closes the gap:  |   [ 71897160.000 ] posts.x: Buffer overflows were first documented more than 30 years ago, and they're still near the top of the most exploited vulnerability classes, and the…  |   [ 71882820.000 ] posts.x: @jleechan2015 @aiDotEngineer @instinct Right on, mate!  |  
corey@gallon.me:~/til$

Debugging Python Tests in VSCode

FIGURE 1 ⋅ Debugging Python Tests in VSCode

VSCode offers native test capabilities that are quite useful. Testing Python in Visual Studio Code

It doesn’t, however, recognize your Python tests by default. You must configure it to do so for each project.

Command Palette (CTRL+SHIFT+P) → “Python: Configure Tests” →

Command Palette Python Configure Tests.png
FIGURE 2 ⋅ Command Palette Python Configure Tests.png

Select the framework you’re using:

Command Palette Select Framework.png
FIGURE 3 ⋅ Command Palette Select Framework.png

Now, you get all of the testy-goodness that VSCode has to offer for Python.

In this case, I wanted to debug a specific test. Super easy! Just drop breakpoints in the test where you want them, then run “Debug Test”.

Right Click Debug Test.png
FIGURE 4 ⋅ Right Click Debug Test.png

The “Test Explorer” is also quite useful.

corey@gallon.me:~$ tail -f /writing Attach to the stream. An email when I have something worth sending. Replies encouraged!
corey@gallon.me:~$ ls -lt /til ↑2024-10-06 raco: Racket's Package Management System (and More)
▸2024-09-15 Debugging Python Tests in VSCode ⋅ you are here
↓2024-09-15 Debugging Python CLI Arguments in VSCode