开发者

How to debug Chromium in Eclipse on Linux?

开发者 https://www.devze.com 2023-02-09 02:14 出处:网络
To debug chromium using gdb (LinuxDebugging) one can use chromium --renderer-cmd-prefix=\"gdb --args\"

To debug chromium using gdb (LinuxDebugging) one can use

chromium --renderer-cmd-prefix="gdb --args"

and

chromium --plugin-la开发者_C百科uncher="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.


Eclipse can be used on Linux as an IDE for developing Chromium. This is from official google link:

http://code.google.com/p/chromium/wiki/LinuxEclipseDev


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消