mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:12:45 +00:00 
			
		
		
		
	 f240def414
			
		
	
	
		f240def414
		
	
	
	
	
		
			
			For now, EventLoop and Application still have a make_inspectable parameter, so that when working on an application you can temporarily hard-code it to be inspectable rather than having to set the env var each time.
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			572 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			572 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ## Name
 | |
| 
 | |
|  Inspector - Serenity process inspector
 | |
| 
 | |
| [Open](file:///bin/Inspector)
 | |
| 
 | |
| ## Synopsis
 | |
| 
 | |
| ```**sh
 | |
| $ Inspector [pid]
 | |
| ```
 | |
| 
 | |
| ## Arguments
 | |
| 
 | |
| * `pid`: Process ID to inspect
 | |
| 
 | |
| ## Description
 | |
| 
 | |
| Inspector facilitates process inspection via RPC.
 | |
| 
 | |
| To inspect a process, it must have `MAKE_INSPECTABLE=1` in its environment,
 | |
| and it must have previously allowed the
 | |
| [`accept`(2)](help://man/2/accept) system call with
 | |
| [`pledge`(2)](help://man/2/pledge) to allow inspection
 | |
| via UNIX socket.
 | |
| 
 | |
| ## Examples
 | |
| 
 | |
| ```sh
 | |
| $ Inspector $(pidof Shell)
 | |
| ```
 |