You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
swift-inspect is a debugging tool which allows you to inspect a live Swift process to gain insight into the runtime interactions of the application.
4
+
5
+
swift-inspect uses the reflection APIs to introspect the live process. It relies on the swift remote mirror library to remotely reconstruct data types.
6
+
7
+
### Building
8
+
9
+
swift-inspect can be built using [swift-package-manager](https://github.com/apple/swift-package-manager).
10
+
11
+
##### Windows
12
+
13
+
In order to build on Windows, some additional parameters must be passed to the build tool to locate the necessary libraries.
14
+
15
+
~~~
16
+
swift build -Xcc -I%DEVELOPER_DIR%\Toolchains\unknown-Asserts-development.xctoolchain\usr\include\swift\SwiftRemoteMirror -Xlinker %DEVELOPER_DIR%\Toolchains\unknown-Asserts-development.xctoolchain\usr\lib\swift\windows\x86_64\swiftRemoteMirror.lib
17
+
~~~
18
+
19
+
### Using
20
+
21
+
The following inspection operations are available currently.
22
+
23
+
##### All Platforms
24
+
25
+
dump-cache-nodes <name-or-pid>
26
+
: Print the metadata cache nodes.
27
+
28
+
dump-conformance-cache <name-or-pid>
29
+
: Print the content of the protocol conformance cache.
0 commit comments