Popular recipes tagged "breakpoint"http://code.activestate.com/recipes/tags/breakpoint/2011-09-20T18:49:23-07:00ActiveState Code RecipesConditionnal Breakpoint (Python) 2011-09-20T18:49:23-07:00s_h_a_i_ohttp://code.activestate.com/recipes/users/4177334/http://code.activestate.com/recipes/577874-conditionnal-breakpoint/ <p style="color: grey"> Python recipe 577874 by <a href="/recipes/users/4177334/">s_h_a_i_o</a> (<a href="/recipes/tags/breakpoint/">breakpoint</a>, <a href="/recipes/tags/debug/">debug</a>). Revision 2. </p> <p>Decorates a class so that it encounters a breakpoint for any call to class.method_name(self,<em>args,</em>*kwargs), where</p> <ul> <li>method_name is given by string</li> <li>only if arguments meet a test: arg_test(self,<em>args,</em>*kwargs) -> bool [default -> True]</li> </ul> <p>Behaviour easily changed for other actions than breakpoint (logging,...)</p>