breakpoint()は、Pythonのコードを一時停止してデバッグできる組み込み関数です。 実行すると、この位置でプログラムが停止し、**対話的にデバッグできるモード(pdbデバッガ)**に入ります。 (Pdb) プロンプトが表示されたら、コマンドを入力できます。
途中で値を確認したい時に、以下のように標準モジュールのpdbを下記のように都度インポートしていた。
Launch VS and create new python application Add an input('>') or raw_input('>') at the top of your code - depends on version of python Add some more python code after that with breakpoint(s) Start ...
This package provides a set of tools for debugging python code with GDB, including python code breakpoints. GDB breakpoints operate on native shared libraries (C/assembler code). Since python is an ...
Used for general purpose programming, data science, website backends, GUIs, and pretty much everything else; the first programming language for many, and claimed to be the fastest growing in the world ...