The dynamic linker (dyld) supports a number of debugging facilities
that you can enable via environment variables.
Variable | Summary |
---|---|
DYLD_IMAGE_SUFFIX | Search for libraries with this suffix first |
DYLD_PRINT_LIBRARIES | Log library loads |
DYLD_PRINT_LIBRARIES_POST_LAUNCH | As above, but only after main has run |
DYLD_PREBIND_DEBUG | Print prebinding diagnostics |
DYLD_PRINT_OPTS | Print launch-time command line arguments |
DYLD_PRINT_ENV | Print launch-time environment variables |
DYLD_IGNORE_PREBINDING | Disable prebinding for performance testing |
DYLD_PRINT_APIS | Log dyld API calls (for example, dlopen) |
DYLD_PRINT_BINDINGS | Log symbol bindings |
DYLD_PRINT_INITIALIZERS | Log image initialization calls |
DYLD_PRINT_SEGMENTS | Log segment mapping |
DYLD_PRINT_STATISTICS | Print launch performance statistics |