python - Where can I find the pdb source code? -


this question has answer here:

i modify source code of python 3.4's built in debugger, pdb (i'm assuming it's written in python). add code when put:

pdb.set_trace(locals()) 

in code, invokes standard pdb interface in console, , automatically displays formatted information local environment variables similar table below.

can point me source code pdb?

-------------------- objects: -----------------------------------[2000] [name: dog]     [data type: "dog"]          [2100] +------+-------+-------+-------+------------+------------+ |  id  | breed | color |  name |    size    |    uuid    | +------+-------+-------+-------+------------+------------+ | 2110 |  lynx | black | dog-3 | large!!!!! | e30475ad-9 | +------+-------+-------+-------+------------+------------+ [name: cat]     [data type: "cat"]          [2200] +------+-------+-------+---------+------------+ |  id  | breed | color |   name  |    size    | +------+-------+-------+---------+------------+ | 2210 |  lynx | black | kitty-5 | large!!!!! | +------+-------+-------+---------+------------+  -------------------- lists of objects: --------------------------[3000] [name: cats]     [data type: "list"]          [3100] +------+-------+-------+---------+------------+ |  id  | breed | color |   name  |    size    | +------+-------+-------+---------+------------+ | 3110 |  lynx | black | kitty-1 | large!!!!! | | 3120 |  lynx | black | kitty-2 | large!!!!! | | 3130 |  lynx | black | kitty-3 | large!!!!! | | 3140 |  lynx | black | kitty-4 | large!!!!! | | 3150 |  lynx | black | kitty-5 | large!!!!! | +------+-------+-------+---------+------------+ [name: dogs]     [data type: "list"]          [3200] +------+-------+-------+-------+------------+------------+ |  id  | breed | color |  name |    size    |    uuid    | +------+-------+-------+-------+------------+------------+ | 3210 |  lynx | black | dog-1 | large!!!!! | e30475ad-9 | | 3220 |  lynx | black | dog-2 | large!!!!! | e30475ad-9 | | 3230 |  lynx | black | dog-3 | large!!!!! | e30475ad-9 | +------+-------+-------+-------+------------+------------+ 

pdb normal module that’s shipped part of standard library. such, can local lib folder find pdb.py source.

of course, can @ online, e.g. on python source repository.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -