Python vscode 的 Jupyter notebook 的 PDB 功能问题

xiaojiba · March 27, 2023 · Last by RachelGomez123 replied at April 03, 2023 · 236 hits

用 import pdb; pdb.set_trace() 就可以调试

用 breakpint() 本来应该也会有同样的效果,但是点击 run 之后发现什么也没有

大家遇到这样问题没有,除了 vscode 的 line by line 的调试,我不喜欢用 vscode 自带的打断点方法

其实用 %debug 也可以

You need to Sign in before reply, if you don't have an account, please Sign up first.