Search code examples
pythonvimpython-mode

How to stop debugging python in vim


It is my first time to edit python code in vim equipped with python-mode plugin. After setting breakpoints, I use "\ r" command to run it.Then it keep still after printing '[pymode]code running...'.I try some ways but still can not quit debug.It just have no response no matter what I do.


Solution

  • According official Debugger commands (from 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