summaryrefslogtreecommitdiff
path: root/inkstitch.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2019-03-28 14:47:05 -0400
committerLex Neva <github.com@lexneva.name>2019-03-28 15:21:50 -0400
commit8aa86f66199a2657ab01ac1a8c52ed1312be2804 (patch)
tree2510254216b079f8cf6bc3248a7424c67786c929 /inkstitch.py
parentf6e6d099d2ada30cda3ee2ece9a7cf93d8442040 (diff)
set up debug logging
Diffstat (limited to 'inkstitch.py')
-rw-r--r--inkstitch.py12
1 files changed, 2 insertions, 10 deletions
diff --git a/inkstitch.py b/inkstitch.py
index 9b040265..8a3ac626 100644
--- a/inkstitch.py
+++ b/inkstitch.py
@@ -7,6 +7,7 @@ from argparse import ArgumentParser
from lib import extensions
from lib.utils import save_stderr, restore_stderr
+import lib.debug as debug
logger = logging.getLogger('shapely.geos')
@@ -34,16 +35,7 @@ parser.add_argument("--extension")
my_args, remaining_args = parser.parse_known_args()
if os.path.exists(os.path.join(os.path.dirname(os.path.realpath(__file__)), "DEBUG")):
- # How to debug Ink/Stitch:
- #
- # 1. Install LiClipse (liclipse.com) -- no need to install Eclipse first
- # 2. Start debug server as described here: http://www.pydev.org/manual_adv_remote_debugger.html
- # * follow the "Note:" to enable the debug server menu item
- # 3. Create a file named "DEBUG" next to inkstitch.py in your git clone.
- # 4. Run any extension and PyDev will start debugging.
-
- import pydevd
- pydevd.settrace()
+ debug.enable()
extension_name = my_args.extension