Le

Leaping – Debug Python tests instantly with an LLM debugger

Hacker News

Leaping – Debug Python tests instantly with an LLM debugger

Hi HN! We’re Adrien and Kanav. We met at our previous job, where we spent about a third of our lives combating a constant firehose of bugs. In the hope of reducing this pain for others in the future, we’re working on automating debugging. We’re currently working on a platform that ingests logs and then automatically reproduces, root causes and ultimately fixes production bugs as they happen. You can see some of our work on this here - https://news.ycombinator.com/item?id=39528087 As we were building the root-cause phase of our automated debugger, we realized that we developed something that resembled an omniscient debugger. Like an omniscient debugger, it also keeps track of variable assignments over time but, you can interact with it at a higher level than a debugger using natural language. We ended up sticking it in a pytest plugin and have been using it ourselves for development over the past few weeks. Using this pytest plugin, you’re able to reason at a much higher level than conventional debuggers and can ask questions like: - Why did function x get hit? - Why was variable y set to this value? - What changes can I make to this code to make this test pass? Here’s a brief demo of this in action: https://www.loom.com/share/94ebe34097a343c39876d7109f2a1428 To achieve this, we first instrument the test using sys.settrace (or, on versions of python >3.12, the far better sys.monitoring!) to keep a history of all the functions that were called, along with the calling line numbers. We then re-run the test and use AST parsing to find all the variable assignments and keep track of those changes over time. We also use AST parsing to obtain the source code for these functions. We then neatly format and pass all this context to GPT. We’d love it if you checked the pytest plugin out and we welcome all feedback :) . If you want to chat bugs, our emails are also always open - kanav@leaping.io

Share card

Actual performance

120points
20comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
86%86% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: new, email, context · Missing: mac, agents, macos
83%83% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: io · Missing: https docs, excited, just released
62%62% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: way · Missing: mobile apps, ios, personal
47%47% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: platform · Missing: plus, intuitive, reviews
45%45% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
13%13% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: chat · Missing: web3, crypto, cryptocurrency
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Sa
Savable Python exceptions to debug later41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Savable Python exceptions to debug later

Hacker News1
A
A Python module to steer LLM outputs43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A Python module to steer LLM outputs

Hacker News2
De
Debug Python and C/C++ together (combined stack)63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Debug Python and C/C++ together (combined stack)

Hacker News1
IC
ICortex: LLM Powered Python Interpreter55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

ICortex: LLM Powered Python Interpreter

Hacker News8
Py
Python Tests That Write Themselves44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Python Tests That Write Themselves

Hacker News131
Pl
PlotAI – Create Plots in Python and Matplotlib with LLM53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

PlotAI – Create Plots in Python and Matplotlib with LLM

Hacker News51
Py
Python Testing Crawler – spider your Flask or Django website in tests40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Python Testing Crawler – spider your Flask or Django website in tests

Hacker News5
Au
Autotrace – Debug on Steroids52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Autotrace – Debug on Steroids

Hacker News5
SQ
SQL tests in python, deterministic and fast45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

SQL tests in python, deterministic and fast

Hacker News2
Sy
System-info-now – Aggregate system debug data for LLM troubleshooting44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

System-info-now – Aggregate system debug data for LLM troubleshooting

Hacker News2