ref. https://kodi.wiki/view/HOW-TO:Debug_Python_Scripts_with_Eclipse
1.
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
2. (if you have another version hava do this)
update-alternatives --config java
update-alternatives --config javac
update-alternatives --config javadoc
java -version
javac -version
javadoc -J-version
(modify their permission number to the highest)
update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1074
update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/java-8-openjdk-amd64/bin/javac 1074
update-alternatives --install /usr/bin/javadoc javadoc /usr/lib/jvm/java-8-openjdk-amd64/bin/javadoc 1074
3. Eclipse IDE for Eclipse Committers 64 bits
https://www.eclipse.org/downloads/packages/release/neon/3
4. gedit eclipse.ini
-Xmx1024m
to
-Xmx4096m
5.
Help > install new software
Neon - http://download.eclipse.org/releases/neon
enable
c/c++ Development tools
c/c++ Development tools sdk
6.
Help > install new software
http://www.pydev.org/updates
enable
PyDev
7.
windows -> preferences -> search
disable
reuse editors to show matches
8.
windows -> preferences -> code analysis
disable
syntax and semantic errors
9.
windows -> preferences -> PyDev -> Interpreters -> python interpreter
click [choose from list]
select [/usr/bin/python]
#you can check libraries can see the system lib
10.
project
disable [build automatically]
11.
File -> new -> project -> pydev project
right click project
enable [create 'src' folder and add it to the pythonpath]
12.
Debug As -> Debug Configurations
double click [python run]
[main module]: test.py
沒有留言:
張貼留言