Changes between Version 28 and Version 29 of WebKitGTK/Debugging


Ignore:
Timestamp:
May 5, 2020 2:01:06 AM (4 years ago)
Author:
Philippe Normand
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WebKitGTK/Debugging

    v28 v29  
    2424However that doesn't work in all cases, because the web process might already have crashed when you are trying to connect to it.
    2525
    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:
     26If 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:
    2727{{{
    2828#!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
     32In a second terminal tab, enter in the Flatpak sandbox and run gdb:
     33{{{
     34#!sh
     35$ flatpak ps
     36Instance   PID    Application              Runtime
     37953119635  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) ...
    3041}}}
    3142