Neovim for Beginners — Python Remote Debugging
Configure remote debugging for a dockerized Python application.
In this article, we will learn how to debug a Python application running inside a Docker container.
This article is part of the Neovim for Beginners series.
The Neovim configuration files can be found in this repository.
In previous articles, we learned how to debug applications using either
vimspector. Those applications are running in a local development setup.
For applications running inside Docker, we can still debug them. For demonstration purposes, we will use the YOLO web-based object detection system. The application is developed using React and Python FastAPI framework.
The application captures an image using the webcam and detects the objects.
Do also check out this article in which we use VS Code to debug Python applications. This should give you a basic understanding of debugging Python applications using
How to Debug Running or Dockerized Python Apps
How to debug an application that may not be directly available on your own machine
For the dockerized application to be debuggable, we need to make changes to the application settings.