diff --git a/scripts/nc-cal-sync/calendar_synchronizer/debug.py b/scripts/nc-cal-sync/calendar_synchronizer/debug.py new file mode 100644 index 0000000..2e34ccd --- /dev/null +++ b/scripts/nc-cal-sync/calendar_synchronizer/debug.py @@ -0,0 +1,10 @@ + +_listening = False + +def debugger(): + global _listening + if not _listening: + import debugpy + debugpy.listen(5678) + debugpy.wait_for_client() + _listening = True