Introduce a python code debugging tools: remote_pdb
https://pypi.org/project/remote-pdb/
installation
pip install remote-pdb
use
1, set breakpoints:
2, restart the service, run the program, open the log, you will find the code at the log stops to debug:
3, telnet to address the log output, execute debug commands: