Setting up a Jupyterhub debug environment on PyCharm

Hello, I regularly use PyCharm to debug code, and lately I’ve been attempting to build a custom authenticator to authenticate Onshape users based off of the genericAuthenticator. I’m trying to debug my oauthenticator code, but I’m not sure how I should go about setting up that development environment. What is the entry point for the jupyterhub command and how do I call it as a debuggable process? Is there a startup script I can manually call to simulate the jupyterhub command?

The entrypoint is, if that helps.

Debugging web applications can be pretty tricky, but if you want to launch jupyterhub (or any Python script) in a debugger, you can do:

python -m pdb $(which jupyterhub)

to launch the entrypoint script with pdb.