diff options
| author | Glenn Smith <glenn@vector35.com> | 2022-03-28 16:05:31 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2022-03-28 16:05:31 -0400 |
| commit | 1291c94d3d5592203200c8e048c9ddc851e812e1 (patch) | |
| tree | a9ef4fb907ffb49d7d9b19e5d61fc0f29ba393db /python/__init__.py | |
| parent | d5f772351468b88a001ea70dbaa485f7747d0f83 (diff) | |
Docs for connect_{pycharm|vscode}_debugger, referring to docs site
Diffstat (limited to 'python/__init__.py')
| -rw-r--r-- | python/__init__.py | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/python/__init__.py b/python/__init__.py index 4d9e1fd7..b81b6089 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -330,6 +330,14 @@ def open_view(*args, **kwargs) -> Optional[BinaryView]: def connect_pycharm_debugger(port=5678): + """ + Connect to PyCharm (Professional Edition) for debugging. + + .. note:: See https://docs.binary.ninja/dev/plugins.html#remote-debugging-with-intellij-pycharm + for step-by-step instructions on how to set up Python debugging. + + :param port: Port number for connecting to the debugger. + """ # Get pip install string from PyCharm's Python Debug Server Configuration # e.g. for PyCharm 2021.1.1 #PY-7142.13: # pip install --user pydevd-pycharm~=211.7142.13 @@ -338,7 +346,15 @@ def connect_pycharm_debugger(port=5678): def connect_vscode_debugger(port=5678): - # Note: Calling this from startup.py will cause Binary Ninja to hang on startup until VSCode starts debugging + """ + Connect to Visual Studio Code for debugging. This function blocks until the debugger + is connected! Not recommended for use in startup.py + + .. note:: See https://docs.binary.ninja/dev/plugins.html#remote-debugging-with-vscode + for step-by-step instructions on how to set up Python debugging. + + :param port: Port number for connecting to the debugger. + """ # pip install --user debugpy import debugpy # type: ignore import sys |
