How To Attach a Debugger to a Running FastAPI Server in VS Code
Introduction
In the realm of software development, debugging is not only inevitable but can also be a complex endeavor.
Picture this: you're faced with the task of deciphering what's occurring within a server that's already humming along. Relaunching it with an attached debugger, the usual go-to method, isn't an option.
In this post, we'll navigate this challenge, zeroing in on how to debug an already running FastAPI server in the rag-stack project as an example. And for those on a tight schedule, here's a quick video tutorial breaking down the process: