Commit 8bd509b4 authored by Matthias Putz's avatar Matthias Putz

--amend

parent 82660781
......@@ -419,7 +419,7 @@ def _Debug(host, env):
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
import pydevd
pydevd.settrace(host, port=19499, stdoutToServer=True, stderrToServer=True)
print("hey")
......@@ -484,6 +484,10 @@ def _Main(argv):
repo._Config(argv)
gopts = repo.config[2]
if gopts.debug:
print("enter debug mode, host %s" % gopts.debug_host)
_Debug(gopts.debug_host, gopts.debug_env)
if gopts.debug:
if portable.isPosix():
# deactivate pager on posix systems since forked process cant be debugged
......@@ -495,11 +499,6 @@ def _Main(argv):
# everything was already done; so exit
return 0
if gopts.debug:
print("enter debug mode, host %s" % gopts.debug_host)
_Debug(gopts.debug_host, gopts.debug_env)
print("done debugging?")
try:
try:
init_ssh()
......
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