Skip to content

Instantly share code, notes, and snippets.

@nutti
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nutti/37991241887faa751432 to your computer and use it in GitHub Desktop.
Save nutti/37991241887faa751432 to your computer and use it in GitHub Desktop.
[Blender] Blenderスクリプトのデバッグ環境(Eclipse+PyDev)を整える ref: http://qiita.com/nutti/items/643aeff33228d37c1fda
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...")
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