From 2d97f6638bc4b531e5c3b63fdb49a7aa38efc3cf Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 10 Nov 2025 16:45:50 +0500 Subject: [PATCH] test_feature - add debugpy option --- src/bonsai/test/bim/test_feature.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/bonsai/test/bim/test_feature.py b/src/bonsai/test/bim/test_feature.py index 4e41e4fb8e..4c1fafe6ad 100644 --- a/src/bonsai/test/bim/test_feature.py +++ b/src/bonsai/test/bim/test_feature.py @@ -1782,3 +1782,16 @@ def run_pdb(): import pdb pdb.set_trace() + + +@given(parsers.parse("I start debugpy")) +@when(parsers.parse("I start debugpy")) +@then(parsers.parse("I start debugpy")) +def run_debugpy() -> types.NoneType: + import debugpy + + debugpy.listen(5678) + debugpy.wait_for_client() + + # Set a breakpoint here. + print("debugpy connected")