Python Debugging

Open-source Python projects categorized as Debugging

Top 23 Python Debugging Projects

  • mitmproxy

    An interactive TLS-capable intercepting HTTP proxy for penetration testers and software developers.

  • Project mention: Apple's M4 Has Reportedly Adopted the ARMv9 Architecture | news.ycombinator.com | 2024-05-24

    Mainly this was just myself getting irritated at MS Teams and trying to figure out what it was doing. It was a couple years ago and my current company doesn't use teams, thankfully, so I can't really see if its still valid.

    From what I remember..

    There are files on the disk that get updated/overwritten with pulls from the server every time it launches. Somewhere in AppData I think. A few of these are config files (with lots of interesting looking settings, including beta features).

    One of the config entries specifies a telemetry endpoint (which, you _could_ figure out with a network tracing tool but there are a ton of MS telemetry endpoints your machine is probably talking to. Best to just grab the one explicitly being used from the config like this). I forget the full name of the setting but the name pretty clearly indicates its for telemetry, and the file is clearly a config file. If you can't find it just by browsing the structure, try a multi-file search tool and look for 'telemetry' or URL/hostnames.

    You can't really change the value on disk and make it just take effect from there, since it gets downloaded from the server and overwritten before Teams loads. There might be some tricks you can do locally to persist the change but nothing seemed to work for me. You could override response from server via mitmproxy but that requires finding where it comes across the wire at launch time and then building a script/config to replace it.

    Anyway, you can block that telemetry endpoint from a firewall and see your memory bloat. Or you can intercept that endpoint in any mitm proxy. I went with this [mitmproxy](https://mitmproxy.org/). From there you can capture the content it sends to the endpoint, or even change the response the server sends (Teams just seems to expect a 200 code back).

    The telemetry data itself is some kind of streaming event format. I think I even found documentation on the structure on some microsoft website, so its likely a reused format.

    It's pretty straightforward.

    I couldn't spend too much time on it and now it's not something I even use, but some cool things you might want to try if you dive deeper into this:

    - Overwrite the config file as it returns from the server, to turn on EU data protection, change various functionality you're not supposed to, or flip some feature flags.

    - Figure out if there's a feature flag or even other overwrite to fully disable the metrics so they aren't even collected, from anywhere in the app.

    - Intercept telemetry, return an 'OK' response and drop the data from telemetry, or maybe document what they collect more definitively if you think there's interest somewhere. This keeps your privacy but doesn't really do anything for performance.

    - Interfere with the data before actually returning it, maybe try playing with event contents and channel/user indicators. Microsoft probably won't like this if they notice, but it's unlikely they'll even notice.

  • httpie

    🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more. (by httpie)

  • Project mention: Criando uma API simples com PHP puro | dev.to | 2024-05-09
  • Scout Monitoring

    Free Django app performance insights with Scout Monitoring. Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.

    Scout Monitoring logo
  • icecream

    🍦 Never use print() to debug again.

  • Project mention: Python VS Common Lisp applied: print, log and icecream | dev.to | 2024-05-16

    I discovered a new Python library "you must not miss" from a youtuber. At first sight, everything looks awesome. Reading icecream's README sparks a lot of joy.

  • PlatformIO

    Your Gateway to Embedded Software Development Excellence :alien:

  • Project mention: Help Needed with Tauri Desktop App for NFC Card Enrollment on ESP32 | /r/tauri | 2023-08-26

    For the ESP32 in read mode, we've successfully developed a project using PlatformIO that accepts the key during build time and stores it in memory.

  • pwndbg

    Exploit Development and Reverse Engineering with GDB Made Easy

  • gef

    GEF (GDB Enhanced Features) - a modern experience for GDB with advanced debugging capabilities for exploit devs & reverse engineers on Linux

  • Project mention: Beej's Quick Guide to GDB (2009) | news.ycombinator.com | 2023-11-05

    There is also GEF, which is widely used by the reverse engineering and CTF community.

    https://github.com/hugsy/gef

  • viztracer

    VizTracer is a low-overhead logging/debugging/profiling tool that can trace and visualize your python code execution.

  • Project mention: Ask HN: C/C++ developer wanting to learn efficient Python | news.ycombinator.com | 2024-04-10

    * https://github.com/gaogaotiantian/viztracer get a timeline of execution vs call-stack (great to discover what's happening deep inside pandas)

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • Cyberbrain

    Python debugging, redefined.

  • pyelftools

    Parsing ELF and DWARF in Python

  • stackprinter

    Debugging-friendly exceptions for Python

  • snoop

    A powerful set of Python debugging tools, based on PySnooper (by alexmojaki)

  • best-of-python-dev

    🏆 A ranked list of awesome python developer tools and libraries. Updated weekly.

  • hunter

    Hunter is a flexible code tracing toolkit.

  • like-dbg

    Fully dockerized Linux kernel debugging environment

  • ice

    Interactive Composition Explorer: a debugger for compositional language model programs (by oughtinc)

  • dd-trace-py

    Datadog Python APM Client

  • watchpoints

    watchpoints is an easy-to-use, intuitive variable/object monitor tool for python that behaves similar to watchpoints in gdb.

  • manhole

    Debugging manhole for python applications.

  • remote-pdb

    Remote vanilla PDB (over TCP sockets).

  • graphsignal-python

    Graphsignal Tracer for Python

  • west

    West, Zephyr's meta-tool

  • secimport

    eBPF Python runtime sandbox with seccomp (Blocks RCE).

  • Project mention: Securing PyTorch Models with eBPF | /r/Python | 2023-07-26

    In this blog, I will present secimport — a toolkit for creating and running sandboxed applications in Python that utilizes eBPF (bpftrace) to secure Python runtimes.

  • ploomber-engine

    A toolbox 🧰 for Jupyter notebooks 📙: testing, experiment tracking, debugging, profiling, and more!

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python Debugging related posts

  • Pipevcr: Like Asciinema but for Pipes

    1 project | news.ycombinator.com | 8 May 2024
  • Beej's Quick Guide to GDB (2009)

    3 projects | news.ycombinator.com | 5 Nov 2023
  • Chidori – Declarative Framework for AI Agents (Rust, Python, and Node.js)

    3 projects | news.ycombinator.com | 26 Jul 2023
  • Diaphora, the most advanced Free and Open Source program diffing tool

    8 projects | news.ycombinator.com | 21 Jun 2023
  • GitHub - hdmamin/roboduck: Natural language debugging, talking error messages, and loquacious loggers.

    1 project | /r/Python | 9 Jun 2023
  • anyone has done an API endpoints scanner?

    2 projects | /r/Python | 8 Jun 2023
  • Show HN: Roboduck, a GPT-powered Python debugger

    1 project | news.ycombinator.com | 5 Jun 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 1 Jun 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Debugging projects in Python? This list will help you:

Project Stars
1 mitmproxy 34,737
2 httpie 32,330
3 icecream 8,570
4 PlatformIO 7,597
5 pwndbg 6,852
6 gef 6,557
7 viztracer 4,495
8 Cyberbrain 2,489
9 pyelftools 1,909
10 stackprinter 1,271
11 snoop 1,206
12 best-of-python-dev 930
13 hunter 781
14 like-dbg 728
15 ice 516
16 dd-trace-py 501
17 watchpoints 462
18 manhole 368
19 remote-pdb 260
20 graphsignal-python 200
21 west 206
22 secimport 161
23 ploomber-engine 59

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com