3
22
Fork
You've already forked swanky-python
1

AI Feature: Trace-based debugging #5

Open
opened 2025年12月14日 15:21:32 +01:00 by tichmangono · 2 comments

Trace-based debugging (you already talk about this) - capture the function calls with args and return values, then feed these to LLM to detect problems e.g. return values mismatch or unexpected behavior

Trace-based debugging (you already talk about this) - capture the function calls with args and return values, then feed these to LLM to detect problems e.g. return values mismatch or unexpected behavior
tichmangono changed title from (削除) Trace-based debugging (削除ここまで) to AI Feature: Trace-based debugging 2025年12月14日 15:23:48 +01:00
Owner
Copy link

What more can we expose to an LLM to help it debug? probably also all logging output, and some access to the values of everything in memory, like if it is a web application the request and response object will be important. Any ideas people have from real world experience with hard to debug issues is welcome, if you think for a bit about what information we could expose that would have helped tracked down that bug faster. I'd like everything presented to the user in a nice and quickly searchable way, but also available to LLMs, they can probably identify some bugs a lot faster than a human.

What more can we expose to an LLM to help it debug? probably also all logging output, and some access to the values of everything in memory, like if it is a web application the request and response object will be important. Any ideas people have from real world experience with hard to debug issues is welcome, if you think for a bit about what information we could expose that would have helped tracked down that bug faster. I'd like everything presented to the user in a nice and quickly searchable way, but also available to LLMs, they can probably identify some bugs a lot faster than a human.

yes, req/res from website is a great example! perhaps database queries with params and results; tracking object mutations and what got modified and when; tracking timing of queries for example to avoid or trace race conditions and all these other edge cases that are often hard to find. Since this mode is likely to be deeper and more involved, maybe you can allow user to choose "verbose" when they are really hunting tricky bugs that often go unnoticed or fail silently. This way you can manage the view and user gets some control.

yes, req/res from website is a great example! perhaps database queries with params and results; tracking object mutations and what got modified and when; tracking timing of queries for example to avoid or trace race conditions and all these other edge cases that are often hard to find. Since this mode is likely to be deeper and more involved, maybe you can allow user to choose "verbose" when they are really hunting tricky bugs that often go unnoticed or fail silently. This way you can manage the view and user gets some control.
Sign in to join this conversation.
No Branch/Tag specified
main
experimental-ai
No results found.
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sczi/swanky-python#5
Reference in a new issue
sczi/swanky-python
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?