python:pydeveclipse
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| python:pydeveclipse [2014/06/12 21:26] – [Import pre-Existing python project] admin | python:pydeveclipse [2022/10/29 16:15] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Python Editor with pydev plugin on Eclipse ====== | ||
| + | ===== Install pydev on Eclipse and Configure ===== | ||
| + | pydev run with java8 | ||
| + | ==== Install Pydev plugin for Eclipse ==== | ||
| + | refer: http:// | ||
| + | The following assume that you have already Eclipse installed: | ||
| + | - You must install **jdk8** to run eclipse | ||
| + | - Get Certificate from http:// | ||
| + | - Go to **Help > Installation details** and look for **' | ||
| + | bin/ | ||
| + | </ | ||
| + | - Select **Help-> | ||
| + | - Or install via **Help -> Eclipse Marketplace** and **search " | ||
| + | - Remove: Go to **Help > Installation details > Installed Software** and remove it | ||
| + | ==== configuration Pydev on Eclipse ==== | ||
| + | - Open in the **Window → Preference → Pydev → Interpreter Python** menu{{: | ||
| + | - Press the **New** button and enter the path to python.exe in your Python installation directory{{: | ||
| + | - The result should look like the following{{: | ||
| + | ===== Your first Python program in Eclipse ===== | ||
| + | - Select **Window-> | ||
| + | - Select **File -> New -> Project**. Select **Pydev -> Pydev** Project.{{: | ||
| + | - Create a new project with the name " | ||
| + | - Select the " | ||
| + | ===== Debug ===== | ||
| + | * Just right-click in the source code and add a breakpoint. | ||
| + | {{: | ||
| + | * Then select **Debug as -> Python Run**{{: | ||
| + | * You can now inspect and modify the variables in the variables view.{{: | ||
| + | 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 ===== | ||
| + | - Select **Window-> | ||
| + | - 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 ==== | ||
| + | - Create new pydev project, for example {{: | ||
| + | - Copy existing scrapy project to directory myscrapy | ||
| + | - Refresh the scrapy project in eclipse | ||
| + | {{: | ||
| + | ==== Config run and debug scrapy ==== | ||
| + | - Go to **Run-> | ||
| + | - Create new configuration myscrapy in menu **Python run** | ||
| + | - Config below parameters: | ||
| + | * **Main-> | ||
| + | * **Arguments-> | ||
| + | ==== Config run and debug scrapy tests ==== | ||
| + | - Go to **Run-> | ||
| + | - Create new configuration scrapyunittest in menu **Python unittest** | ||
| + | - Config below parameters: | ||
| + | * **Main-> | ||
