Expose debug flags in User preferences #78206

Open
opened 2020-06-24 14:57:10 +02:00 by Mateusz Grzeliński · 4 comments

Description
This is nice to have feature for enabling disabling debug flags in User Preferences

Design:

  • expose checkboxes in user preferences
  • we can show it only when developer extras are enabled

Engineer plan:

  • there are ~24 G_DEBUG* flags in global structure G.debug
  • we already expose debug flags in bpy.app in blender-src/source/blender/python/intern/bpy_app.c:
debug_depsgraph
debug_depsgraph_build
debug_depsgraph_eval
debug_depsgraph_pretty
debug_depsgraph_tag
debug_depsgraph_time
debug_events
debug_ffmpeg
debug_freestyle
debug_gpumem
debug_handlers
debug_io
debug_python
debug_simdata
debug_value
debug_wm```

* I am not sure how to implement buttons, I would appreciate feedback:
  * is it possible to bind api to button?
  * should I create RNA entry for each flag? how to bing RNA to global structure? how does RNA relates to api?

* as a bonus I would like to expose running depsgraph graphing tool

![obraz.png](https://archive.blender.org/developer/F8640906/obraz.png)

**Description** This is nice to have feature for enabling disabling debug flags in User Preferences **Design:** * expose checkboxes in user preferences * we can show it only when developer extras are enabled **Engineer plan:** * there are ~24 `G_DEBUG*` flags in global structure `G.debug` * we already expose debug flags in `bpy.app` in `blender-src/source/blender/python/intern/bpy_app.c`: ```debug debug_depsgraph debug_depsgraph_build debug_depsgraph_eval debug_depsgraph_pretty debug_depsgraph_tag debug_depsgraph_time debug_events debug_ffmpeg debug_freestyle debug_gpumem debug_handlers debug_io debug_python debug_simdata debug_value debug_wm``` * I am not sure how to implement buttons, I would appreciate feedback: * is it possible to bind api to button? * should I create RNA entry for each flag? how to bing RNA to global structure? how does RNA relates to api? * as a bonus I would like to expose running depsgraph graphing tool ![obraz.png](https://archive.blender.org/developer/F8640906/obraz.png)
Mateusz Grzeliński self-assigned this 2020-06-24 14:57:10 +02:00
Author
Member

Added subscriber: @grzelins

Added subscriber: @grzelins
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Changing this to Confirmed since this is not something the triaging team can do anything about.

Changing this to Confirmed since this is not something the triaging team can do anything about.
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:24:22 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#78206
No description provided.