python:pydeveclipse
This is an old revision of the document!
Table of Contents
Python Editor with pydev plugin on Eclipse
Install pydev on Eclipse and Configure
pydev run with java8
Install Pydev plugin for Eclipse
refer: http://www.pydev.org/manual_101_install.html The following assume that you have already Eclipse installed:
- Get Certificate from http://www.pydev.org/pydev_certificate.cer
- Go to Help > Installation details and look for 'java.home' . Then to actually import it, in the command line, go to the Eclipse 'java.home' directory and execute:
bin/keytool.exe -import -file pydev_certificate.cer -keystore lib/security/cacerts
⇒ your password when requested should be changeit
- Select Help→Install New Software to open Eclipse update manager Diaglog
- Install PyDev via the Eclipse update manager via the following update site: http://www.pydev.org/updates
- Remove: Go to Help > Installation details > Installed Software and remove it
configuration Pydev on Eclipse
Your first Python program in Eclipse
Debug
- Just right-click in the source code and add a breakpoint.
Via the debug buttons (or shortcuts F5, F6, F7, F8) you can move in your program. You can use F5 / F6, F7 and F8 to step through your coding.
Import pre-Existing python project
- right click on the project pan and click import
- From the list expand General and select existing project into workspace.
- Select root directory by going next
- Optionally you select copy projects into workspace
Import scrapy project and debug
Import Scrapy Project
- Copy existing scrapy project to directory myscrapy
- Refresh the scrapy project in eclipse
Config run and debug scrapy
- Go to Run→Debug Configuration to open Debug Configuration dialog
- Create new configuration myscrapy in menu Python run
- Config below parameters:
- Main→Main Module:d:\tools\Python27\Lib\site-packages\scrapy-0.22.2-py2.7.egg\scrapy\cmdline.py
- Arguments→Program Arguments: crawl dmoz
Config run and debug scrapy tests
- Go to Run→Debug Configuration to open Debug Configuration dialog
- Create new configuration scrapyunittest in menu Python unittest
- Config below parameters:
- Main→Main Module:d:\tools\Python27\Lib\site-packages\Scrapy-0.22.2-py2.7.egg\scrapy\tests\test_engine.py
python/pydeveclipse.1489161990.txt.gz · Last modified: 2022/10/29 16:15 (external edit)