Merge pull request #2261 from gitbucket/add_remote_debug_doc

Add documentation for remote debug
This commit is contained in:
Naoki Takezoe
2019-02-02 10:52:05 +09:00
committed by GitHub
3 changed files with 23 additions and 0 deletions

22
doc/debug.md Normal file
View File

@@ -0,0 +1,22 @@
Debug GitBucket on IntelliJ
========
Add following configuration for allowing remote debugging to `buils.sbt`:
```scala
javaOptions in Jetty ++= Seq(
"-Xdebug",
"-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"
)
```
Run GitBucket:
```shell
$ sbt ~jetty: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!

View File

@@ -1,6 +1,7 @@
Developer's Guide
========
* [Build from source tree](build.md)
* [Debug on IntelliJ](debug.md)
* [Directory Structure](directory.md)
* [Mapping and Validation](validation.md)
* [Authentication in Controller](authenticator.md)

BIN
doc/remote_debug.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB