Skip to content

Commit

Permalink
Add simple IntelliJ debugger config (#2287) (#2288)
Browse files Browse the repository at this point in the history
Signed-off-by: Jay Deng <[email protected]>
(cherry picked from commit 0bbeac3)

Co-authored-by: Jay Deng <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and jed326 authored Nov 26, 2024
1 parent 4e1a8f6 commit 8d0edf4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .idea/runConfigurations/Debug_OpenSearch.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ OR
./gradlew run --debug-jvm # to just start a cluster that can be debugged
```
The OpenSearch server JVM will connect to a debugger attached to `localhost:5005` before starting. If there are multiple nodes, the servers will connect to debuggers listening on ports `5005, 5006, ...`
The OpenSearch server JVM will connect to a debugger attached to `localhost:5005` before starting. If there are multiple nodes, the servers will connect to debuggers listening on ports `5005, 5006, ...`. A simple debugger configuration for IntelliJ is included in this project and can be found [here](https://github.com/opensearch-project/k-NN/tree/main/.idea/runConfigurations/Debug_OpenSearch.xml).
To debug code running in an integration test (which exercises the server from a separate JVM), first, setup a remote debugger listening on port `8000`, and then run:
Expand Down

0 comments on commit 8d0edf4

Please sign in to comment.