Fixed debug context in forced debug mode

Signed-off-by: Tom Wright <tom@inflatablecookie.com>