1. copy-paste the error msg to ChatGPT and ask for the cause A; 2. Locate the buggy code B and prompt ChatGPT for suggestions to fix A in B; 3. Narrow down B to C. Ask ChatGPT to convert C to the correct version (as A is a version issue). 4.