Commit 294579e8 authored by Matthias Putz's avatar Matthias Putz

fix debugging (changed debug file in intellij plugin)

parent 52185ee3
......@@ -3,3 +3,4 @@ workspace.xml
*.bak
*.pyc
.repopickle_*
.work
......@@ -17,9 +17,9 @@ Features:
* Remote Debugging Possibility
* options:
* enable debugging: -d
* enable debugging: --debug
* set debug host: --debug-host=172.31.0.250
* (used port is 19499)
(default localhost, uses port is 19499)
* using local git-repo (in $GIT_REPO; branch 'dev') and local git repositories (in $REPOS)
$GIT_REPO/repo init -u $REPOS/manifest/ --no-repo-verify --repo-branch=dev
* Tracing: set environment variable
......
......@@ -385,15 +385,19 @@ def init_http():
def _Debug(host, env):
try:
if env == "eclipse":
sys.path.append("C:\Program Files\eclipsePython\plugins\org.python.pydev_2.7.1.2012100913\pysrc")
sys.path.append("/opt/eclipseCPy/plugins/org.python.pydev_2.7.1.2012100913/pysrc")
if portable.isUnix():
sys.path.append("/opt/eclipseCPy/plugins/org.python.pydev_2.7.1.2012100913/pysrc")
else:
sys.path.append("C:\Program Files\eclipsePython\plugins\org.python.pydev_2.7.1.2012100913\pysrc")
import pydevd as pydevd
elif env == "intellij":
sys.path.append("C:\\Users\mputz\.IntelliJIdea12\config\plugins\python\pycharm-debug.egg")
sys.path.append("/home/mputz/.IntelliJIdea12/config/plugins/python/pycharm-debug.egg")
sys.path.append("C:\\Users\mputz\.IntelliJIdea12\config\plugins\python\helpers\pydev")
sys.path.append("/home/mputz/.IntelliJIdea12/config/plugins/python/helpers/pydev")
from pydev import pydevd
if portable.isUnix():
sys.path.append("/home/mputz/.IntelliJIdea12/config/plugins/python/helpers/pydev")
sys.path.append("/home/mputz/.IntelliJIdea12/config/plugins/python/pycharm-debug-py3k.egg")
else:
sys.path.append("C:\\Users\mputz\.IntelliJIdea12\config\plugins\python\pycharm-debug-py3k.egg")
sys.path.append("C:\\Users\mputz\.IntelliJIdea12\config\plugins\python\helpers\pydev")
import pydevd as pydevd
pydevd.settrace(host, port=19499, stdoutToServer=True, stderrToServer=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment