Only im port debugpy if you want to debug stuff

This commit is contained in:
Christian Wolf 2024-05-08 13:25:01 +02:00
parent 3b98cef590
commit 5712c3da63

View File

@ -1,7 +1,6 @@
import argparse import argparse
import logging import logging
import debugpy
class Cli: class Cli:
@ -50,6 +49,7 @@ class Cli:
self.__args = parser.parse_args() self.__args = parser.parse_args()
if self.__args.debug: if self.__args.debug:
import debugpy
debugpy.listen(5678) debugpy.listen(5678)
debugpy.wait_for_client() debugpy.wait_for_client()