Skip to content

Commit e13f2e8

Browse files
committed
Add convenience function pbbreak()
1 parent 2dd57a5 commit e13f2e8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

python_bridge.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
from PythonBridge.bridge_hooks import *
66
from PythonBridge.object_registry import registry
77

8+
def pbbreak():
9+
print("Breaking now")
10+
breakpoint()
11+
print("Continuing")
12+
13+
814
class EvalCommand:
915
statements = ""
1016
binding = {}
@@ -158,4 +164,4 @@ def run_bridge():
158164
bridge_globals.logger.log("PYTHON: Finished command execution")
159165

160166
if __name__ == "__main__":
161-
run_bridge()
167+
run_bridge()

0 commit comments

Comments
 (0)