mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 18:57:18 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			604 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			604 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package service
 | |
| 
 | |
| import "net"
 | |
| 
 | |
| // Config provides the configuration to start a Debugger and expose it with a
 | |
| // service.
 | |
| //
 | |
| // Only one of ProcessArgs or AttachPid should be specified. If ProcessArgs is
 | |
| // provided, a new process will be launched. Otherwise, the debugger will try
 | |
| // to attach to an existing process with AttachPid.
 | |
| type Config struct {
 | |
| 	// Listener is used to serve requests.
 | |
| 	Listener net.Listener
 | |
| 	// ProcessArgs are the arguments to launch a new process.
 | |
| 	ProcessArgs []string
 | |
| 	// AttachPid is the PID of an existing process to which the debugger should
 | |
| 	// attach.
 | |
| 	AttachPid int
 | |
| }
 | 
