Skip to content Skip to footer
Show HN: Letting LLMs Run a Debugger by mohsen1

Show HN: Letting LLMs Run a Debugger by mohsen1

10 Comments

  • Post Author
    jasonjmcghee
    Posted February 13, 2025 at 12:19 am

    Nice! I recently had and built the same idea using MCP (in order to be client / LLM agnostic) and VS Code (DAP would be even better, but haven't tried tackling it).

    https://github.com/jasonjmcghee/claude-debugs-for-you

  • Post Author
    codenote
    Posted February 13, 2025 at 1:49 am

    Interesting experiment! This feels like it could really expand the potential applications of LLMs. Exciting to see how AI can assist in debugging with live runtime context!

  • Post Author
    stuaxo
    Posted February 14, 2025 at 10:56 am

    Nice, I did this manually once with ipdb, just cutting and pasting the text to LLM and having it tell me which variables to inspect and what to press.

  • Post Author
    mohsen1
    Posted February 15, 2025 at 11:01 am

    To people who do this sort of thing:

    Does generating synthetic data using this make sense for RL of models to be be really good at debugging code? Currently all LLMs inhaled all of code in the world but the data is only text of the code (maybe plus changes that fixed bugs etc) but the amount of insight that can be generated by actually running the code and getting the runtime values, step-by-step is almost infinite.

    Is this sort of data useful for training LLMs?

  • Post Author
    bravura
    Posted February 15, 2025 at 11:18 am

    A time-traveling debugger for Python + LLM would be amazing.

  • Post Author
    jdright
    Posted February 15, 2025 at 12:48 pm
  • Post Author
    melvinroest
    Posted February 15, 2025 at 12:56 pm

    This would be amazing with Smalltalk/Pharo or a similar language where the concept of debugging is a first class citizen (I guess it's the same for certain Lisp languages?)

  • Post Author
    crest
    Posted February 15, 2025 at 2:01 pm

    I like the first paragraph of the README clearly stating that this is your research project instead of making a lot of grandiose claims.

  • Post Author
    ericb
    Posted February 15, 2025 at 3:09 pm

    Very cool concept! There's a lot of potential in reducing the try-debug–fix cycle for LLMs.

    On a related note, here's a Ruby gem I wrote that captures variable state from the moment an Exception is raised. It gets you non-interactive text-based debugging for exceptions.

    https://rubygems.org/gems/enhanced_errors

  • Post Author
    K0IN
    Posted February 15, 2025 at 7:21 pm

    Hei this is lovely,

    i created a extension to help me debug a while back [0], and i thought of this (ai integration) for a long time, but did not have the time to tackle this.

    Thank you so much for sharing!

    I might need to add this approach to my extension as well!

    [0] https://github.com/K0IN/debug-graph

Leave a comment

In the Shadows of Innovation”

© 2025 HackTech.info. All Rights Reserved.

Sign Up to Our Newsletter

Be the first to know the latest updates

Whoops, you're not connected to Mailchimp. You need to enter a valid Mailchimp API key.