How to clear default of syntax error check on debug

Can you clarify your issue? The code I gave you clears the pref and allows the syntax error check dialog to pop up again. How are you testing whether it indeed works or not?