Skip to content

Commit b67ebe6

Browse files
committed
DebugWindowsCommand: record pid as well
1 parent e9a220d commit b67ebe6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/AppBundle/command/impl/DebugWindowsCommand.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ private func dumpWindowDebugInfo(_ window: Window) async throws -> String {
8282
result["Aero.treeNodeParent"] = .string(String(describing: window.parent))
8383
result["Aero.macOS.version"] = .string(ProcessInfo().operatingSystemVersionString) // because built-in apps might behave differently depending on the OS version
8484
result["Aero.App.appBundleId"] = .string(window.app.bundleId.prettyDescription)
85+
result["Aero.App.pid"] = .int(Int(window.app.pid))
8586
result["Aero.App.versionShort"] = .string((appInfoDic["CFBundleShortVersionString"] as? String).prettyDescription)
8687
result["Aero.App.version"] = .string((appInfoDic["CFBundleVersion"] as? String).prettyDescription)
8788
result["Aero.App.nsApp.activationPolicy"] = .string(window.macApp.nsApp.activationPolicy.prettyDescription)

0 commit comments

Comments
 (0)