показать все точки останова при отладке кода Python с помощью pdb

6864
HXGuo

Я использую pdb для отладки кода Python. Я установил точки останова в командной строке pdb с помощью b [linenumber]. Могу ли я проверить все количество точек останова? Благодарю.

13

1 ответ на вопрос

13
Dan D.

Use the b command with no arguments.

Without argument, list all breaks, including for each breakpoint, the number of times that breakpoint has been hit, the current ignore count, and the associated condition if any.

from http://docs.python.org/2/library/pdb.html