Last active
August 29, 2015 14:19
-
-
Save nutti/37991241887faa751432 to your computer and use it in GitHub Desktop.
[Blender] Blenderスクリプトのデバッグ環境(Eclipse+PyDev)を整える ref: http://qiita.com/nutti/items/643aeff33228d37c1fda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
DEBUGGING = True | |
def start_debug(): | |
if DEBUGGING is True: | |
PYDEV_SRC_DIR = "(eclipseディレクトリへのパス)/plugins/org.python.pydev_XXXXX/pysrc" # 環境に応じて書き換えが必要 | |
if PYDEV_SRC_DIR not in sys.path: | |
sys.path.append(PYDEV_SRC_DIR) | |
import pydevd | |
pydevd.settrace() | |
print("started blender script debugging...") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from . import debug | |
if __name__ == "__main__": | |
debug.startdebug() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment