Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tutorials:blender:debug_blender_python_script [2018/09/25 10:05]
alanzheng
tutorials:blender:debug_blender_python_script [2018/10/11 14:00] (current)
alanzheng old revision restored (2018/09/23 13:55)
Line 1: Line 1:
 ===== How to debug blender python script ===== ===== How to debug blender python script =====
  
-  - <font 20px/​inherit;;​inherit;;​inherit>​Launch blender from a terminal emulator.</​font>​ +  - Launch blender from a terminal emulator. 
-  - <font 20px/​inherit;;​inherit;;​inherit>​Add ''​import pdb; pdb.set_trace()''​ to your code where you wish to start debugging from.</​font>​ +  - Add ''​import pdb; pdb.set_trace()'' ​ to your code where you wish to start debugging from. 
-  - [[http://​docs.python.org/​3.7/​library/​pdb.html|Run your code and the debug will put into the Python debugger]] in terminal emulator. +  - Run your code and the debug will put into [[http://​docs.python.org/​3.7/​library/​pdb.html|the Python debugger]] in terminal emulator. 
- +{{tag>​tutorial python blender}}
-{{tag>​tutorial python ​debug blender ​plugin addon}}+