I can't figure out how to view the DEBUG reports generated by calling self.report({'DEBUG'}, 'DEBUG') in an operator.
Steps to reproduce:
Launch blender with the debug flag.
blender --debugConfirm
bpy.app.debugisTruein the interactive console.Paste and run this addon script.
import bpy class OPERATOR_REPORT_TEST(bpy.types.Operator): """Show all Wm Report Items""" bl_idname = "script.operator_report" bl_label = "Operator Report" bl_options = {'REGISTER'} def execute(self, context): self.report({'DEBUG'}, 'DEBUG') self.report({'INFO'}, 'INFO') self.report({'OPERATOR'}, 'OPERATOR') self.report({'PROPERTY'}, 'PROPERTY') self.report({'WARNING'}, 'WARNING') self.report({'ERROR'}, 'ERROR') self.report({'ERROR_INVALID_INPUT'}, 'ERROR_INVALID_INPUT') self.report({'ERROR_INVALID_CONTEXT'}, 'ERROR_INVALID_CONTEXT') self.report({'ERROR_OUT_OF_MEMORY'}, 'ERROR_OUT_OF_MEMORY') return {'FINISHED'} def register(): bpy.utils.register_class(OPERATOR_REPORT_TEST) def unregister(): bpy.utils.unregister_class(OPERATOR_REPORT_TEST) if __name__ == "__main__": register() bpy.ops.script.operator_report()There is on entry corresponding to the DEBUG report in the info console.
There is also no log in the system console used to launch blender. All other reports are showing up.


DEUBGreports. I tried opening in PowerShell usingStart-Process "C:\Program Files\Blender Foundation\Blender 4.3\blender.exe" -ArgumentList '--debug'and I also tried creating a shortcut icon and changing the target to"C:\Program Files\Blender Foundation\Blender 4.3\blender.exe" --debugbutself.report({'DEBUG'}, 'somedebug')will never show up in my case. Could you elaborate more on how exactly you got this to work? $\endgroup$Error: Python: Traceback (most recent call last): File "\Text", line 29, in <module> File "C:\Program Files\Blender Foundation\Blender 4.3\4.3\scripts\modules\bpy\ops.py", line 109, in __call__ ret = _op_call(self.idname_py(), kw)$\endgroup$