Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
すべての python 関数/メソッドの実行をプログラムでトレースする方法はありますか? それぞれがどの引数で呼び出されたかを確認したいと思います。私は本当にすべてを意味します。私はトレースデコレータには興味がありません。
Ruby では、必要なメソッドに別名を付けて、そこに追加の動作を追加することができました。
traceモジュールを見てください。
コマンドラインからも使用できます。
python -m trace --help