Use sublime text to build a python debugging environment [go]

Source: Internet
Author: User
Tags sublime text

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]


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.