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.
- Introduction to Python system files
- How to correctly use Python Functions
- Detailed introduction and analysis of Python build tools
- Advantages of Python in PythonAndroid
- How to Use the Python module to parse the configuration file?