2016-09-07 4 views
2

pdbまたはipdbに将来のすべてのブレークポイントをスキップして、そこになかったかのように実行を終了するように指示する方法はありますか?pdb/ipdbのブレークポイントをスキップすることはできますか?

+0

可能な複製http://stackoverflow.com/questions/17820618/how-to-exit-pdb-and-allow-program-to-continue私は確信していないので、投票には至らない。 –

答えて

0

多分あなたはクリアで試すことができます。ヘルプから

は: '(Pdb) help clear cl(ear) filename:lineno cl(ear) [bpnumber [bpnumber...]] With a space separated list of breakpoint numbers, clear those breakpoints. Without argument, clear all breaks (but first ask confirmation). With a filename:lineno argument, clear all breaks at that line in that file. Note that the argument is different from previous versions of the debugger (in python distributions 1.5.1 and before) where a linenumber was used instead of either filename:lineno or breakpoint numbers.

あなたの質問を話し合う別のトピックがあります:How to exit pdb and allow program to continue?あなたがそれらをクリアするのではなく、あなたのブレークポイントを維持したいが、また、彼らは、あなたを達することがないようにしたい場合は

+1

は 'クリア'しますか? –

0

pdbdisableコマンドを使用できます。すべてのブレークポイントを簡潔な方法で無効にする便利な方法はありませんが、disableコマンドでその番号を列挙できます。これについて選択的にすることもでき、いくつかのブレークポイントを無効にして他のブレークポイントを有効にすることもできます。 disableコマンドの効果をpdb s enableコマンドで元に戻すことができます。パラメーターを指定しないでbreakコマンド(または単にb)を有効にするかどうかは、各ブレークポイントごとに表示されます。

関連する問題