Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Debugger PIN when I run the flask app python

Tags:

python

flask

  • Debugger is active!
  • Debugger PIN: 620-122-212

I see this when I run the flask app and i'm trying to understand where it will get used?

Please let me know!

like image 562
Dinesh Sakthivel Avatar asked Feb 26 '19 10:02

Dinesh Sakthivel


2 Answers

This is an additional security measure provided by Werkzeug (which is one of the dependencies for Flask) to prevent the debugger from being accessible without the knowledge of the PIN. You can use the debugger pin in the browser to launch the interactive debugger.

Please note you should never be using DEBUG mode in Production anyways because the stack trace of error can potentially reveal multiple aspects of your code.

The Debugger PIN is a just an added layer of security in case you inadvertently leave the Debug mode on in an Production application to make it difficult for the attacker to access the debugger .

like image 156
Rohit Avatar answered Nov 12 '22 12:11

Rohit


This is a security code for the debugger. Its purpose is to make access to the debugger more difficult for an attacker in a production environment. More details here

like image 30
Tobin Avatar answered Nov 12 '22 14:11

Tobin