Page MenuHome

add mixed python/C++ debugging option on windows.
ClosedPublic

Authored by Ray Molenkamp (LazyDodo) on Oct 22 2018, 2:48 AM.

Details

Summary

You enable this feature by adding 'pydebug' to the make.bat invocation.

This changes the following options compared to a regular project.

  1. Blender debug options.

normally we do not supply any, when pydebug is enabled, -con --env-system-scripts \"${CMAKE_SOURCE_DIR}/release/scripts\ is added.

this will make both release and debug share the same scripts, also it skips the tedious INSTALL step every time you edit a script.

  1. Cycles gets installed to the user scripts folder instead.

Since cycles doesn't live in release/scripts but gets copied to the output folder during INSTALL the changes in 1 break cycles.

to work around this, cycles is copied to the user scripts folder.

not ideal, but I don't see a more elegant option.

  1. 2 new sub projects are added with the contents of release/script and the user scripts folder.

None of these things will be done if pydebug is not active, so there should be no disruption for regular users.

Diff Detail

Repository
rB Blender
Branch
pydebug
Build Status
Buildable 2277
Build 2277: arc lint + arc unit

Event Timeline

Ray Molenkamp (LazyDodo) edited the summary of this revision. (Show Details)EditedOct 22 2018, 2:50 AM

I have a quick start guide on how to use this feature here

This revision is now accepted and ready to land.Oct 22 2018, 3:34 AM

Looks good, but fix the comments code style.

build_files/cmake/platform/platform_win32.cmake
612

Code style for comments here and elsewhere:

# Include the system scripts in the blender_python_system_scripts project.

Also, the quick start guide would be good to have on wiki.blender.org.

I transferred the quick start here but it took me longer to port it to mediawiki than to write the original and it looks rather terrible. even basic things like note don't work on our wiki, It's unpleasant for the end user to read, and frustrating for the dev to write. Unless forced i'm unlikely to repeat this experiment.

  • Fix comment style.