GPT3.5 MERN Debugging FirstPrinciples CheatSheet
GPT3.5 MERN Debugging FirstPrinciples CheatSheet
5 Prompt Cheat Sheet for Debugging MERN Stack Using First Principles
Prompt:
"Help me debug a MERN stack app using first principles thinking. I have a [describe bug]. Explain what might
Prompt:
"I'm building a React component to [brief functionality]. It's not rendering/working correctly. Here is my code
[insert code]. Help debug it and explain what might be going wrong step-by-step."
Best Practices:
Prompt:
"My Express route for [describe API route] is returning an error or not hitting the database. Here's the code:
[insert route + model]. Help debug and walk me through possible problems."
Best Practices:
Prompt:
"I'm using Mongoose to [insert action like save, update, populate], but it's not working as expected. Here's the
model + query code. Help debug and explain what may be causing the issue."
Best Practices:
Prompt:
"My MERN app is throwing CORS error / ENV issue / not connecting with frontend after deployment. Here's
Best Practices:
Prompt:
"I'm getting an error while building [describe feature]. Here's the relevant code and error message: [insert
Prompt:
"Break down this bug/error logically from scratch. Explain what assumptions may be wrong and how I can