Joey Yi Zhao
Joey Yi Zhao

Reputation: 42604

How to debug gunicorn application?

I have a python gunivorn application to serve as restful service. I am using gunicorn app:app development --reload to load the server. How can I enable debug model in this application? I am using vscode as IDE. And I am not sure how to debug it from this IDE.

Upvotes: 2

Views: 7058

Answers (1)

HerberthObregon
HerberthObregon

Reputation: 2141

You can create a .sh file and run this.

Then with

gunicorn -b :8080 --log-level=DEBUG -w 4 file:app 

Upvotes: 2

Related Questions