Here is a screenshot of Pycharm configuration to debug.
let me know if you face problem configuring it.