Files
GitBucket/doc/debug.md
2025-02-05 22:52:49 +09:00

23 lines
507 B
Markdown

Debug GitBucket on IntelliJ
========
Add following configuration for allowing remote debugging to `build.sbt`:
```scala
javaOptions in Jetty ++= Seq(
"-Xdebug",
"-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"
)
```
Run GitBucket:
```shell
$ sbt ~container:start
```
In IntelliJ, create remote debug configuration as follows. Make sure port number is same as above configuration.
![Remote debug configuration on IntelliJ](remote_debug.png)
Then you can start debugging on IntelliJ!