Sublime 下配置Python程序交互式运行和单步调试

  • Sublime设置

将sublime设置为快捷键F5一键交互式运行,Ctrl+F5
进行pdb调试。

  • Package Control中下载SublimeREPL(Read-Eval-Print-Loop)
  • Preferneces -> Key Bingdings-User进行设置
[
  {
"keys": [
  "f5"
],
"caption": "SublimeREPL: Python - RUN current file",
"command": "run_existing_window_command",
"args": {
  "id": "repl_python_run",
  "file": "config/Python/Main.sublime-menu"
}
  },
  {
"keys": [
  "ctrl+f5"
],
"caption": "SublimeREPL: Python - PDB current file",
"command": "run_existing_window_command",
"args":
{
    "id": "repl_python_pdb",
    "file": "config/Python/Main.sublime-menu"
}
  }
]

你可能感兴趣的:(配置文件)