Bug 935228 - Toggle debug traps only in debug mode. (r=jandem)