Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
git-repo
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux-tools
git-repo
Commits
294579e8
Commit
294579e8
authored
Apr 15, 2013
by
Matthias Putz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix debugging (changed debug file in intellij plugin)
parent
52185ee3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
+14
-9
.gitignore
.gitignore
+1
-0
NOTES.md
NOTES.md
+2
-2
main.py
main.py
+11
-7
No files found.
.gitignore
View file @
294579e8
...
...
@@ -3,3 +3,4 @@ workspace.xml
*.bak
*.pyc
.repopickle_*
.work
NOTES.md
View file @
294579e8
...
...
@@ -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
...
...
main.py
View file @
294579e8
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment