mirror of
				https://github.com/gitbucket/gitbucket.git
				synced 2025-11-03 20:15:59 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			503 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			503 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
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.
 | 
						|
 | 
						|

 | 
						|
 | 
						|
Then you can start debugging on IntelliJ!
 |