Allow for debugging
This commit is contained in:
parent
9148e1f469
commit
5577cea351
10
scripts/nc-cal-sync/calendar_synchronizer/debug.py
Normal file
10
scripts/nc-cal-sync/calendar_synchronizer/debug.py
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
_listening = False
|
||||
|
||||
def debugger():
|
||||
global _listening
|
||||
if not _listening:
|
||||
import debugpy
|
||||
debugpy.listen(5678)
|
||||
debugpy.wait_for_client()
|
||||
_listening = True
|
Loading…
x
Reference in New Issue
Block a user