Skip to content

Commit 5da7721

Browse files
Pavel Minaevint19h
authored andcommitted
Fix #975: Properties parameter to the configure API has become required in 1.6.1
1 parent 3f325f5 commit 5da7721

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/debugpy/server/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def log_to(path):
7474
log.log_dir = path
7575

7676

77-
def configure(properties, **kwargs):
77+
def configure(properties=None, **kwargs):
7878
if _settrace.called:
7979
raise RuntimeError("debug adapter is already running")
8080

tests/debugpy/test_attach.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ def code_to_debug():
2222
import time
2323
from debuggee import backchannel, scratchpad
2424

25+
# Test different ways of calling configure().
26+
debugpy.configure(qt="none", subProcess=True, python=sys.executable)
27+
debugpy.configure({"qt": "none", "subProcess": True, "python": sys.executable})
28+
debugpy.configure({"qt": "none"}, python=sys.executable)
29+
2530
debuggee.setup()
2631
_, host, port, wait_for_client, is_client_connected, stop_method = sys.argv
2732
port = int(port)

0 commit comments

Comments
 (0)