Which Python IDE can run my script line-by-line?

后端 未结 15 793
小鲜肉
小鲜肉 2021-02-01 02:38

I wouldn\'t call myself programmer, but I\'ve started learning Python recently and really enjoy it.

I mainly use it for small tasks so far - scripting, text processing,

15条回答
  •  不思量自难忘°
    2021-02-01 03:00

    I use Notepad++ for most of my Windows based Python development and for debugging I use Winpdb. It's a cross platform GUI based debugger. You can actually setup a keyboard shortcut in Notepad++ to launch the debugger on your current script:

    To do this go to "Run" -> "Run ..." in the menu and enter the following, making sure the path points to your winpdb_.pyw file:

    C:\python26\Scripts\winpdb_.pyw "$(FULL_CURRENT_PATH)"
    

    Then choose "Save..." and pick a shortcut that you wish to use to launch the debugger.

    PS: You can also setup a shortcut to execute your python scripts similarly using this string instead:

    C:\python26\python.exe "$(FULL_CURRENT_PATH)"
    

提交回复
热议问题