Although IDEs such as pycharmt are cool, they are still uncomfortable in terms of speed and resources.
The use of IDE is nothing more than a convenient and trouble-saving, especially for me with some memory.
Several places where the IDE is convenient are:
1. Syntax color highlighting
2. Grammar completion
3. Convenient debugging function
Now that Sublime Text is an artifact, it can be more convenient to build a convenient IDE-like python debugging environment with the plug-in.
1. You can now install sublime text 3, and then install package control, which can make it convenient for you to install plug-in packages. Installation method is online.
2. Install the SublimeCodeIntel plug-in, which can realize the syntax auto-complete function.
Installing AutoPEP8 can automatically normalize python.
3. Focus on installing the SublimeREPL plug-in. When installing and opening a python file, switch the layout to a 2-line query style and select the menu:
Then the following pdb debugging interface appears.
Then you can output various pdb commands for debugging. such as:
(Pdb) b 31 #Create a breakpoint on line 31
Breakpoint 1 at c: \ work \ code \ workspace \ test \ sqlalchemy \ docopt.py: 31
(Pdb) r #Run to the breakpoint
> c: \ work \ code \ workspace \ test \ sqlalchemy \ docopt.py (31) <module> ()
-> m = MyClass ()
(Pdb) #The current context of Python can be executed under this command line
The specific pdb command Baidu goes.
From: http://blog.csdn.net/wenxuansoft/article/details/38559731
data:
http://www.oschina.net/translate/setting-up-sublime-text-for-python-development
http://www.oschina.net/translate/setting-up-sublime-text-for-python-development
https://github.com/wuub/SublimeREPL
Use Sublime Text to build a python debugging environment [transfer]