Seems like enabling debugging will cause a crash. No idea why yet...