Changes between Version 28 and Version 29 of WebKitGTK/Debugging
- Timestamp:
- May 5, 2020 2:01:06 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WebKitGTK/Debugging
v28 v29 24 24 However that doesn't work in all cases, because the web process might already have crashed when you are trying to connect to it. 25 25 26 If you are using the Flatpak SDK and you want to debug the web process, the simplest way is to connect to it using gdb :26 If you are using the Flatpak SDK and you want to debug the web process, the simplest way is to connect to it using gdb. First start mini-browser in a terminal tab: 27 27 {{{ 28 28 #!sh 29 $ Tools/Scripts/webkit-flatpak --debug --command=gdb /app/webkit/WebKitBuild/Debug/bin/WebKitWebProcess 29 $ Tools/Scripts/run-minibrowser --gtk --debug <url> 30 }}} 31 32 In a second terminal tab, enter in the Flatpak sandbox and run gdb: 33 {{{ 34 #!sh 35 $ flatpak ps 36 Instance PID Application Runtime 37 953119635 616738 org.webkit.Webkit org.webkit.Sdk 38 $ sudo flatpak enter 616738 /bin/bash 39 # gdb attach $(/bin/pidof /app/webkit/WebKitBuild/Debug/bin/WebKitWebProcess) 40 (gdb) ... 30 41 }}} 31 42