Debugging with VSCode or Pycharm

Hello,

Does anyone have a guide on how to enable debugging and intellisense for VSCode or Pycharm. I am having a lot if difficulties debugging the errors or stepping through the code.

Regards

The script provided here in answer to a related query works well.

Thank You @jaravo!