WebKit Inside: GPU 进程调试

最新的iOS WebKit源码,无法正常调试GPU进程。

如果运行iOS WebKit源码,Attach GPU进程进入断点,GPU进程会立马退出。

通过查看WebKit源码,配置文件UnifiedWebPreferences.yaml中有如下配置:

ChildProcessDebuggabilityEnabled:
  comment: Disables GPU process IPC timeouts
  type: bool
  status: internal
  humanReadableName: "Child Process Debuggability"
  humanReadableDescription: "Enable stopping child processes with a debugger"
  exposed: [ WebKit ]
  defaultValue:
    WebKitLegacy:
      default: false
    WebKit:
      default: false
    WebCore:
      default: false

从配置文件可以看到,这个配置的值默认是false

将默认值都修改成true之后,重新编译WebKit源码,GPU进程可以正常调试了。

posted @ 2025-04-11 00:39  chaoguo1234  阅读(57)  评论(0)    收藏  举报