change the debug mode for capturing null dereference to a global compilar option