问题 When I run my Python debugger, I can step into functions that I write. But if I try to step into a library function like os.mkdir("folder") , for example, it "steps over" it instead. Is there a way to step into builtin library functions to see what Python is doing under the hood? Ideally there'd be a way to do this in PyPy so that you could keep drilling down into Python code. 回答1: pdb , the Python Debugger, cannot step into C functions like os.mkdir , but gdb can. Try this: gdb --args python