How to debug Chromium in Eclipse on Linux?
-
28-10-2019 - |
Question
To debug chromium using gdb (LinuxDebugging) one can use
chromium --renderer-cmd-prefix="gdb --args"
and
chromium --plugin-launcher="gdb --args"
Chromium then launches debugger with "gdb --args" and pass command line specifying how to launch that process. Then I can use gdb from command line as normally.
How can I achieve the same scenario in Eclipse?
By using non-stop mode I can debug chrome as usual. But since renderer and plugins are running out of process, I can't track them.
Solution 2
The only solution I've found is "attach to process" approach.
Update: seems like Eclipse Indigo (gdb 7.2) supports multiprocess debugging. Didn't try it yet.
OTHER TIPS
Eclipse can be used on Linux as an IDE for developing Chromium. This is from official google link:
I don't recall anyone on the Chromium uses Eclipse with Chrome for debugging. With that technique, you can only use gdb.
Eclipse is not a supported environment, if you can support it, it would be super :)
Use Qtcreator to debug chrome on linux, you need to just attach the process.