Debugging Revit

Hello everyone,
If can someone point me to a link for a tuto or something like about debugging pyrevit through Revit or Vscode.
Thank you for your help