From BlenderWiki
[edit] Debug Blender using Microsoft Visual Stuido 8
Currently MSVC8 is unable to run Blender (version 2.45) in debug mode due to unknown reason. (On the other hand the release mode can be build/executed perfectly)
However there is a small walkaround that would let you debug Blender with MSVC8 with some side effect:
1. Build Blender with debug configuration came with MSVC.
2. Load Blender on debugger, at which point it should crash.
3. Go to the debugger, it should point to a line in function syspath_append() in file BPY_interface.c, comment out that line and the rest of the function expect "return;"
4. Now Blender should run in debug mode.
What syspath_append() function does is it initializes Python scripts for later use, by commenting out the function you will not be able to use some python scripts.







![[]](/skins/blender/open.png)
