launchctl debug <argv...>

Configures the next invocation of a service for debugging

Arguments

NameDescription
argvVariable args: argv0 argv1

Options

NameDescription
--program <program-path>Use program path as executable
--guard-mallocTurn on libgmalloc
--malloc-stack-loggingTurn on malloc(3) stack logging
--malloc-nano-allocatorTurn on malloc(3) nano allocator
--debug-librariesSet the DYLD_IMAGE_SUFFIX
--introspection-librariesAdd introspection libraries to the DYLD_IMAGE_PATH
--NSZombieEnables NSZombie
--32Runs service on appropriate 32-bit architecture
--stdin <stdin-path>Sets the stdin path
--stdout <stdout-path>Sets the stdout path
--stderr <stderr-path>Sets the stderr path
--environment <environment-variables...>Sets environment variables