Rich Python debugger Resources

Source: Internet
Author: User

After the Python debugger adds the hyperlink feature to the function and the import/export database, you must press the CTRL key in the PYTHONPATH directory during the function call process to display a hyperlink, this completes the basic operation.

In this way, you can navigate between the import library or function source code. Note that to use this feature across modules in your own source code to link from one module to another), you must modify the PYTHONPATH environment variable and add these modules to it, in this way, PyDev can find them.

If Code cannot be executed, IDE is not very useful. To execute the Python code, you can select the feedparser. py file from the Navigator view, right-click it, and choose Python> Run. The STARTUP configuration window of Python is displayed.

The Python debugger was recently added to the PyDev plug-in. To use the Python debugger, you can set a breakpoint on the left side of the code line to be interrupted in the Python editor. I set a breakpoint at line 1830 of feedparser. py. In the Navigator view, right-click the Python module and choose "Python> Debug ...".

A STARTUP configuration window similar to the preceding one is displayed. Click Debug to enter the Debug view and start the debugger. The Debug view in the upper-left corner shows the processes and threads currently being executed. The Variables view in the upper-right corner shows all Variables in the current running domain. The Python editor displays the statements on which the debugger is currently running.

All output information is displayed in the Console view. The debugger can be controlled through the button or Run menu at the bottom of the Debug view. Eclipse and its plug-ins also have many other features that can be used in Python development, such as the XML editor, UML editor, but mostly centered on Java code), as well as resource control plug-ins.

Currently, there are almost 500 plug-ins listed on the Eclipse plug-in site. For more information, see references ). I will focus on a plug-in that is particularly useful to many Python developers: the CVS plug-in already included in the Eclipse release, but will not discuss the details.

Eclipse includes integrated CVS with rich features:
◆ Supports SSH, pserver, ext, and other connection methods.
◆ Support for basic CVS commands: Check out projects, submit changes, update, and add files or modes to. cvsignore.
◆ View the combined files.
◆ Compare file differences in source code control.
◆ Synchronize projects and display the deleted and added content in the database.
◆ You can also provide other plug-ins to support other source code control systems, such as ClearCase, Subversion, and Visual SourceSafe.

  1. Introduction to Python system files
  2. How to correctly use Python Functions
  3. Detailed introduction and analysis of Python build tools
  4. Advantages of Python in PythonAndroid
  5. How to Use the Python module to parse the configuration file?

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.