@@ -52,6 +52,7 @@ benefit of all Swift developers.
5252 - [ Viewing allocation history, references, and page-level info] ( #viewing-allocation-history-references-and-page-level-info )
5353 - [ Printing memory contents] ( #printing-memory-contents )
5454 - [ Windows Error Codes] ( #windows-error-codes )
55+ - [ Debugging Simulator Apps] ( #working-simulator-apps )
5556- [ Debugging LLDB failures] ( #debugging-lldb-failures )
5657 - [ "Types" Log] ( #types-log )
5758 - [ "Expression" Log] ( #expression-log )
@@ -1201,6 +1202,15 @@ Some relevant Microsoft documentation:
12011202* https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-erref/0642cb2f-2075-4469-918c-4441e69c548a
12021203* https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-
12031204
1205+ ## Debugging Simulator Apps
1206+
1207+ Sometimes one has to debug apps compiled for one of the simulators (e.x.: iOS
1208+ simulator). To manipulate the simulator from the command line, one uses the tool
1209+ called ` simctl ` . This lets one perform actions such as installing apps,
1210+ uninstalling apps, and of course launching apps. To pass through environment
1211+ variables to launched apps, one sets them in the calling environment using the
1212+ environment variable prefix ` SIMCTL_CHILD_$ACTUAL_ENV_VAR_NAME ` .
1213+
12041214# Debugging LLDB failures
12051215
12061216Sometimes one needs to be able to while debugging actually debug LLDB and its
0 commit comments