Use sublime text to build a Python debugging environment

Source: Internet
Author: User
Tags sublime text

Original address: http://blog.csdn.net/wenxuansoft/article/details/38559731

PYCHARMT such as the IDE, although the use of cool, but after all, in the speed, resources or more unpleasant.

Using the IDE is nothing but an easy and convenient way to do things, especially if I have a bad memory.

Some of the areas that the IDE makes easy to say are:

1. Syntax color highlighting

2. Automatic grammar completion

3. Convenient debugging function

Now with the sublime text this artifact, with the plug-in can also be more convenient to build a convenient IDE-like debugging environment of the python.

1, you can now install sublime text 3, and then install the package control, this thing can make you easy to install plug-in packages. Installation method online One mound.

2, install Sublimecodeintel plug-in, can realize automatic grammar completion function.

Installing AutoPEP8 can automatically normalize python.

3, focus on the installation of SUBLIMEREPL plug-in, install open python file, the layout switch to 2-line Search, select the menu:

The following PDB debugging interface is then present.

Then you can output a variety of PDB commands for debugging. Like what:

(Pdb) b to #在31行建立断点

Breakpoint 1 at C:\work\code\workspace\test\sqlalchemy\docopt.py:31

(PDB) R #运行到断点处
> c:\work\code\workspace\test\sqlalchemy\docopt.py (+) <module> ()
M=myclass ()

(PDB) #在这个命令行下就可以执行当前上下文的python

Specific PDB command Baidu to go.

Use sublime text to build a Python debugging environment

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.