Documentation & Exploration
doc
Read documentation for functions, classes, methods, and properties
show
Display source code for classes, methods, and functions
ls
List variables, methods, properties, and constants
dump
Dump objects and primitives with detailed formatting
Debugging
wtf
Show the backtrace of the most recent exception
trace
Display the current call stack
whereami
Show where you are in the code
show --ex
Show exception context with source code
History & Editing
history
Search, save, and replay command history
edit
Open an external editor for code input
Session Management
help
Display help for commands
clear
Clear the screen
exit
Exit the REPL session
Quick Command Reference
| Command | Aliases | Description |
|---|---|---|
doc | rtfm, man | Read documentation for code elements |
show | - | Show source code or exception context |
ls | dir | List variables, methods, properties |
dump | - | Dump an object or primitive |
wtf | last-exception, wtf? | Show exception backtrace |
trace | - | Show current call stack |
whereami | - | Show current code location |
history | hist | Manage command history |
edit | - | Open external editor |
help | ? | Show command help |
clear | - | Clear the screen |
exit | quit, q | Exit PsySH |