Skip to content

Instantly share code, notes, and snippets.

@andreberg
Last active June 4, 2021 13:47
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 andreberg/5fccfcd30f123c1029f430878ad1279a to your computer and use it in GitHub Desktop.
Save andreberg/5fccfcd30f123c1029f430878ad1279a to your computer and use it in GitHub Desktop.
[Show All Operators] Echo all operators as they are executed instead of just REGISTER'ed ones. #blender #python #bpy #api #debug #tricks #tips

While Blender logs operators in the Info editor, this only reports operators with the REGISTER option enabled so as not to flood the Info view with calls to bpy.ops.view3d.smoothview and bpy.ops.view3d.zoom. Yet for testing it can be useful to see every operator called in a terminal, do this by enabling the debug option either by passing the --debug-wm argument when starting Blender or by setting bpy.app.debug_wm to True while Blender is running.

See also Show All Operators

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment