DEV Community

Fyp Services
Fyp Services

Posted on

How to Debug a Final Year Project That Stopped Working Before Submission

Every semester there is a group whose project worked last week and refuses to run today, usually a few days before submission. Panicking and reinstalling everything makes it worse. Work through the failure the way a developer would, in this order:

1. Write down exactly what changed.
New package installed? Database edited by hand? Code merged from a group member? Moved the project to a new laptop? Ninety percent of "it suddenly broke" cases are one of these four. If you use Git, git log --oneline and git diff answer this in two minutes — which is why committing daily during FYP is not optional advice.

2. Read the first error, not the last one.
Error logs cascade. The red wall in your console is mostly follow-on failures; the actual cause is almost always the first error at the top. Fix errors one at a time, top down, and re-run after each fix.

3. Separate the layers.
Frontend not loading data? Open the API URL directly in the browser or Postman. If the API answers there, your backend and database are fine and the bug is in the frontend call. If it does not, test the database connection with one simple query. Three five-minute tests isolate the broken layer better than an hour of guessing.

4. Check the boring things.
Wrong port, API base URL still pointing at localhost on a different machine, expired token, a .env file that did not get copied, database service not running. These cause more FYP emergencies than real code bugs.

5. Freeze a working copy.
The moment it runs again, commit everything and copy the whole folder plus a database export to a separate drive. Before submission week, "working and backed up" beats "perfect."

If you are stuck at the layer-isolation step for more than a day, that is the point where guided help actually saves time — this is exactly the kind of project rescue and debugging support we provide at FYP Services, where the goal is that you understand the fix well enough to explain it in your viva.

What broke your project the first time: frontend, API, or database?

Top comments (0)