Skip to content

Commit 67e37a6

Browse files
committed
Support connecting to a debug server from the Python API
1 parent 83d7058 commit 67e37a6

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

api/python/debuggercontroller.py

+21-1
Original file line numberDiff line numberDiff line change
@@ -665,12 +665,32 @@ def quit(self) -> None:
665665

666666
def connect(self) -> None:
667667
"""
668-
Connect to a remote target.
668+
Connect to a remote target (process)
669+
670+
The host and port of the remote target must first be specified by setting `remote_host` and `remote_port`
669671
670672
:return:
671673
"""
672674
dbgcore.BNDebuggerConnect(self.handle)
673675

676+
def connect_to_debug_server(self) -> bool:
677+
"""
678+
Connect to a debug server.
679+
680+
The host and port of the debug server must first be specified by setting `remote_host` and `remote_port`
681+
682+
:return:
683+
"""
684+
return dbgcore.BNDebuggerConnectToDebugServer(self.handle)
685+
686+
def disconnect_from_debug_server(self) -> None:
687+
"""`
688+
Disconnect from a debug server.
689+
690+
:return:
691+
"""
692+
dbgcore.BNDebuggerDisconnectDebugServer(self.handle)
693+
674694
def detach(self) -> None:
675695
"""
676696
Detach the target, and let it execute on its own.

0 commit comments

Comments
 (0)