From 5577cea3516c8eca01e1eca4501bb5f0edd4ad72 Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Thu, 16 Jan 2025 15:40:33 +0100 Subject: [PATCH] Allow for debugging --- scripts/nc-cal-sync/calendar_synchronizer/debug.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 scripts/nc-cal-sync/calendar_synchronizer/debug.py 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