mirror of
https://github.com/vinta/awesome-python.git
synced 2026-03-22 14:12:18 -05:00
[PR #1340] [CLOSED] Add PySnooper for debugging #1183
Reference in New Issue
Block a user
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?
📋 Pull Request Information
Original PR: https://github.com/vinta/awesome-python/pull/1340
Author: @stanleyuan
Created: 8/30/2019
Status: ❌ Closed
Base:
master← Head:add_pysnooper📝 Commits (2)
c7fbd64Add PySnooper for debuggingea7073aApply suggestions from code review📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
README.md(+1 -0)📄 Description
What is this Python project?
PySnooper lets you print values except instead of carefully crafting the right print lines, you just add one decorator line to the function you're interested in. You'll get a play-by-play log of your function, including which lines ran and when, and exactly when local variables were changed.
What's the difference between this Python project and similar ones?
Just slap the decorator on, as shown below, and redirect the output to a dedicated log file by specifying its path as the first argument.
--
Anyone who agrees with this pull request could vote for it by adding a 👍 to it, and usually, the maintainer will merge it when votes reach 20.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.