Add global debug mode constant

Signed-off-by: JWhy <jwhy@jwhy.de>