set breakpoint in another module/file

Stef Mientki stef.mientki at gmail.com
Tue Sep 22 23:23:49 CEST 2009


Daniel wrote:
> Is there a way with pdb to set a breakpoint in another module directly
> using a command similar to set_trace() ? For example, I'd like to do
> something like this in my source code:
>
> import pdb
> pdb.setbreak(42, "/path/to/universe.py", "name == 'hitchhiker'")
>
>   
I think winpdb ( nothing todo with windows-OS ) can do that and much more.

cheers,
Stef



More information about the Python-list mailing list