pwndbg_argc
Retrieve the argument count (argc) of the program being debugged to understand how it was invoked.
Instructions
Print the argument count (argc) of the running program.
pwndbg command: argc Source: pwndbg/commands/argv.py Category: Linux/libc/ELF
Args: session_id: The UUID of the session.
See: https://pwndbg.re/2025.05.30/reference/pwndbg/commands/argv/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |