gpt4 book ai didi

python - 如何停止在 vim 中调试 python

转载 作者:太空宇宙 更新时间:2023-11-03 11:25:24 26 4
gpt4 key购买 nike

这是我第一次在带有 python-mode 插件的 vim 中编辑 python 代码。设置断点后,我使用“\r”命令运行它。然后在打印'[pymode]code running ...'后它保持静止。我尝试了一些方法,但仍然无法退出调试。它无论如何都没有反应我做什么。

最佳答案

根据官方调试器命令(来自 here ):

[usage:] dbg command [options]
- quit :: exit the debugger
- run :: continue execution until a breakpoint is reached or the program ends
default shortcut: \r
- stop :: exit the debugger
- over :: step over next function call
default shortcut: \o
- watch :: execute watch functions
default shortcut: \w
- up :: go up the stack
default shortcut: \u
- here :: continue execution until the cursor (tmp breakpoint)
default shortcut: \h
- down :: go down the stack
default shortcut: \d
- exit :: exit the debugger
- eval :: eval some code
- break :: set a breakpoint
default shortcut: \b
- into :: step into next function call
default shortcut: \i
- out :: step out of current function call
default shortcut: \t

关于python - 如何停止在 vim 中调试 python,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35010499/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com