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

--amend

parent 82660781
...@@ -419,7 +419,7 @@ def _Debug(host, env): ...@@ -419,7 +419,7 @@ def _Debug(host, env):
else: 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\pycharm-debug-py3k.egg")
sys.path.append("C:\\Users\mputz\.IntelliJIdea12\config\plugins\python\helpers\pydev") 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) pydevd.settrace(host, port=19499, stdoutToServer=True, stderrToServer=True)
print("hey") print("hey")
...@@ -484,6 +484,10 @@ def _Main(argv): ...@@ -484,6 +484,10 @@ def _Main(argv):
repo._Config(argv) repo._Config(argv)
gopts = repo.config[2] 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 gopts.debug:
if portable.isPosix(): if portable.isPosix():
# deactivate pager on posix systems since forked process cant be debugged # deactivate pager on posix systems since forked process cant be debugged
...@@ -495,11 +499,6 @@ def _Main(argv): ...@@ -495,11 +499,6 @@ def _Main(argv):
# everything was already done; so exit # everything was already done; so exit
return 0 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:
try: try:
init_ssh() 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