python - Where can I find the pdb source code? -
this question has answer here:
- where find python standard library code? 4 answers
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
Post a Comment