
addDebugProperty(name, debug)
- Enable/disable debug Print Debug Information button
- Type: string
- Name of an added Property on the object
- Type: boolean
- Enable: 1 or True
- Disable: 0 or False
Show Debug Properties in Blender 3D
- Info menu >> Game >> Show Debug Properties
or
- bge.render.showProperties(True)
- Logic Editor >> Properties tab >> Properties >> Print Debug Information button

Sample Code
################## Enable Print Debug Information button
# import bge
import bge
# get controller
cont = bge.logic.getCurrentController()
# get object that controller is attached to
obj = cont.owner
# Property named "Health"
# enable debug button
obj.addDebugProperty("Health", True)