Skip to content

Commit 26627d7

Browse files
authored
Merge pull request #85590 from gottesmm/pr-ec98d099eea90c59803748f629e9c4dfb27d42a0
[docs] Add some information to DebuggingTheCompiler.md about working with the various simulators.
2 parents b06ac15 + ef3298e commit 26627d7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/DebuggingTheCompiler.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

12061216
Sometimes one needs to be able to while debugging actually debug LLDB and its

0 commit comments

Comments
 (0)