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

标签 python vim python-mode

这是我第一次在带有 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/

相关文章:

vim - VIM 什么时候重新评估 foldexpr?

python - 为什么 python 解释器不在 python 模式的 emacs python shell 缓冲区中打印输入代码和输出?

python - 如何编写一个以 "Mode"作为参数的 Python 函数?

python - 在 python 中计算许多回归的最快方法?

regex - 如何在 VIM 中执行存储在文件中的一堆编辑器命令?

python - 将代码从 vim 发送到外部应用程序以执行

python - (Django) 在模型中定义 `__str__` ,而其他模型的属性尚未定义

python - Pandas 时间序列假期规则偏移量

emacs - electric-indent-mode 破坏了我的 Python 代码

emacs - 在 Emacs python 模式下执行表达式并打印其值