1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 10:25:07 +00:00
serenity/Base/usr/share/man/man1/Inspector.md
Sam Atkins f240def414 LibCore: Allow inspecting any process launched with MAKE_INSPECTABLE=1
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.
2022-04-18 12:57:34 +02:00

31 lines
572 B
Markdown

## Name
![Icon](/res/icons/16x16/app-inspector.png) 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)
```