summaryrefslogtreecommitdiff
path: root/docs/getting-started.md
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2021-08-14 20:24:48 -0400
committerGlenn Smith <glenn@vector35.com>2021-08-14 20:25:31 -0400
commite7a9d025c35410a7ac187f8c9a2b8eb20641ebe9 (patch)
tree878538bd5a89d93177cab9eba3fc47471d37a0f6 /docs/getting-started.md
parentcabcf1c23cc644bd65dfd4b0060a3c276579a471 (diff)
Move debugging info to plugin dev guide
Diffstat (limited to 'docs/getting-started.md')
-rw-r--r--docs/getting-started.md18
1 files changed, 1 insertions, 17 deletions
diff --git a/docs/getting-started.md b/docs/getting-started.md
index e1a88300..032e0f85 100644
--- a/docs/getting-started.md
+++ b/docs/getting-started.md
@@ -519,23 +519,7 @@ The python interpreter can be customized to run scripts on startup using `startu
From here, you can add any custom functions or objects you want to be available in the console. If you want to restore the original copy of `startup.py` at any time, simply delete the file and restart Binary Ninja. A fresh copy of the above will be generated for you in `startup.py`.
#### Python Debugging
-
-If you wish to debug your python scripts, there are a few methods:
-1. Remote debugging with VSCode:
- a. In VSCode, open the Run and Debug sidebar.
- b. Create a `launch.json` file if one does not already exist, or open `launch.json` if one does.
- c. In `launch.json`, select Add Configuration > Python > Remote Attach
- d. Enter a host of `localhost` and any port
- e. Set the path mapping to be from `/` to `/` (Windows: `C:\\` to `C:\\`)
- f. Open Binary Ninja
- g. Use `connect_vscode_debugger(port=12345)` in the Python Console, using whichever port you selected in `launch.json`.
- h. In VSCode, start debugging. You should see the bottom toolbar change color, and the debugger should be attached.
-2. Remote debugging with IntelliJ PyCharm Professional **(Does not work on PyCharm Community)**:
- a. In PyCharm, add a Run Configuration for Python Debug Server. Give it a name and choose a port and host.
- b. Run the `pip install` script displayed in the Run Configuration using whichever python interpreter you have selected for Binary Ninja.
- c. In PyCharm, start debugging. You should see "Waiting for process connection..." in the Debugger panel.
- d. Open Binary Ninja
- e. Use `connect_pycharm_debugger(port=12345)` in the Python Console, using whichever port you selected in the Run Configuration. You should now see "Connected" in the PyCharm Debugger panel.
+See the [plugin development guide](dev/plugins.md#debugging-python).
Note
!!! Tip "Note"