Urgent.News

What's breaking now, across hundreds of outlets.

Tech

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?…

As the final deadline looms, students often face the frustration of their projects suddenly coming to a halt. When this occurs, especially with just a few days remaining until submission, panic sets in and the temptation to reinstall everything is strong. However, there is a systematic approach to debugging that can help resolve the issue efficiently.

Firstly, it is crucial to document exactly what has changed. This could be a newly installed package, an edited database, a recent code merge from a group member, or moving the project to a new laptop. Ninety percent of sudden project failures can be traced back to one of these four factors. For those using Git, running `git log --oneline` and `git diff` can quickly pinpoint the change that led to the problem.

Next, pay attention to the first error message in the logs, rather than the last one that appears. Error logs often create a cascading effect, with the initial error being the root cause. Addressing errors one by one, starting from the top of the error cascade, and re-running the project after each fix can help isolate and resolve the issue systematically.

Thirdly, it's important to separate the different layers of the project to identify where the problem lies. If the frontend is not loading data, open the API URL directly in a browser or use Postman to test the API. If the API responds, the problem is likely in the frontend call. Conversely, if the API does not respond, test the database connection using a simple query. This method allows you to isolate the broken layer in just a few minutes, saving valuable time compared to an hour of guessing.

Fourthly, check the common, but often overlooked, issues. Ensure that the correct port is being used and that the API base URL still points to the correct location, even if it's running on a different machine. Verify that any expired tokens are up to date and that a `.env` file, which may contain sensitive configuration settings, has been properly copied across all environments. A misconfigured database service that is not running can also cause unexpected failures.

Lastly, once the project starts running again, it's essential to freeze a working copy. Immediately commit all changes and copy the entire project folder, along with a database export, to a separate drive. This backup ensures that if the project breaks again before submission, you have a reliable working copy to fall back on. This approach is far preferable to trying to maintain the perfect project state just before the deadline.

If you find yourself stuck at the layer-isolation stage for more than a day, seeking guided help from services that specialize in FYP support can save considerable time. These services can provide targeted debugging support to help you understand the fix well enough to explain it during your viva.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Cloudflare Error 521 on Linux Foundation Portal: Verify Origin Health, Document Downtime, and Escalate SLA or Access Impacts

Incident Summary & Anatomy of Cloudflare Error 521 When a learner requests trainingportal.linuxfoundation.org and receives Cloudflare Error 521 – Web server is down , the edge proxy has already…

  • Error 521 indicates web server down between Cloudflare and Linux Foundation's origin
  • Observability issue: discrepancy between live traffic and status dashboards
  • TCP connection refusal or timeout triggers HTTP status code 521

Vercel Sandbox alternatives: when to look past it and where to go

Vercel Sandbox is a strong default if your app already deploys on Vercel. Each sandbox is a Firecracker microVM, the meter charges CPU only while code is using it, sandboxes persist by default, and…

  • Vercel Sandbox uses Firecracker microVM isolation
  • Alternatives considered when outside Vercel or needing more resources
  • Notable options include Sandscale, E2B, Cloudflare Sandboxes, Fly.io Sprites, and Freestyle

More from Friday 27 November →