[仏教の最適化プログラムの続き。] Tips。 デバッガの中で for…
jrf> [仏教の最適化プログラムの続き。] Tips。 デバッガの中で for ループなどが使いたい場合は、interact コマンドを使いインタラクティブモードに入れば良い。 ただ、問題はインタラクティブモードから抜けるとき。私は Ctrl-D で抜けているが、Ctrl-Z (+ Return) も使える。が、それらが使えない処理系があったりわかりにくかったりする。ちなみに、exit や quit だと、インタラクティブモードだけでなくデバッガからも抜けてしまう現状がある。 問題にはなってるようで、Python の Issue にもなっている。 《In the Python debugger pdb, how do you exit interactive mode without terminating the debugging session - Stack Overflow》 https://stackoverflow.com/questions/36945059/in-the-python-debugger-pdb-how-do-you-exit-interactive-mode-without-terminating 《課題 41096: Need command to exit PDB interactive shell - Python tracker》 https://bugs.python.org/issue41096