forked from loafle/openapi-generator-original
		
	docs: add hint about how to attach VSCode to the suspended Java process (#19551)
This commit is contained in:
		
							parent
							
								
									d02aae7469
								
							
						
					
					
						commit
						5c6b8f3b16
					
				@ -201,6 +201,23 @@ The steps are shown here for a specific version of the generator, but apply the
 | 
			
		||||
  ```
 | 
			
		||||
* Set breakpoints in code, and then attach your remote debugger from your IDE (see above). The generator will automatically unblock once the remote debugger is attached. You can now step through the code.
 | 
			
		||||
 | 
			
		||||
    For VSCode you can use the following launch configuration (`launch.json`):
 | 
			
		||||
    ```json
 | 
			
		||||
    {
 | 
			
		||||
        "version": "0.2.0",
 | 
			
		||||
        "configurations": [
 | 
			
		||||
            {
 | 
			
		||||
                "type": "java",
 | 
			
		||||
                "name": "Debug (Attach)",
 | 
			
		||||
                "request": "attach",
 | 
			
		||||
                "hostName": "localhost",
 | 
			
		||||
                "port": 5005
 | 
			
		||||
            }
 | 
			
		||||
        ]
 | 
			
		||||
    }
 | 
			
		||||
    ```
 | 
			
		||||
    to attach the the suspended process above.
 | 
			
		||||
 | 
			
		||||
## Logs
 | 
			
		||||
 | 
			
		||||
You can try to enable debugging log with `-Dlog.level=debug` option to the `JAVA_OPTS` environment variable to see more information:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user