Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Side by Side Diff: docs/linux_debugging_gtk.md

Issue 1309473002: WIP: Migrate Wiki content over to src/docs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « docs/linux_debugging.md ('k') | docs/linux_debugging_ssl.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 ## Making warnings fatal
2
3 See [Running GLib Applications](http://developer.gnome.org/glib/stable/glib-runn ing.html) for notes on how to make GTK warnings fatal.
4
5 ## Using GTK Debug packages
6
7 ```
8 sudo apt-get install libgtk2.0-0-dbg
9 ```
10 Make sure that you're building a binary that matches your architecture (e.g. 64- bit on a 64-bit machine), and there you go.
11
12 ### Source
13 You'll likely want to get the source for gtk too so that you can step through it . You can tell gdb that you've downloaded the source to your system's GTK by do ing:
14
15 ```
16 $ cd /my/dir
17 $ apt-get source libgtk2.0-0
18 $ gdb ...
19 (gdb) set substitute-path /build/buildd /my/dir
20 ```
21
22 NOTE: I tried debugging pango in a similar manner, but for some reason gdb didn' t pick up the symbols from the symbols from the -dbg package. I ended up buildin g from source and setting my LD\_LIBRARY\_PATH.
23
24 See LinuxBuildingDebugGtk for more on how to build your own debug version of GTK .
25
26 ## Parasite
27 http://chipx86.github.com/gtkparasite/ is great. Go check out the site for more about it.
28
29 Install it with
30 ```
31 sudo apt-get install gtkparasite
32 ```
33
34 And then run Chrome with
35 ```
36 GTK_MODULES=gtkparasite ./out/Debug/chrome
37 ```
38
39 ### ghardy
40 If you're within the Google network on ghardy, which is too old to include gtkpa rasite, you can do:
41 ```
42 scp bunny.sfo:/usr/lib/gtk-2.0/modules/libgtkparasite.so /tmp
43 sudo cp /tmp/libgtkparasite.so /usr/lib/gtk-2.0/modules/libgtkparasite.so
44 ```
45
46 ## GDK\_DEBUG
47
48 ```
49 14:43 < xan> mrobinson: there's a way to run GTK+ without grabs fwiw, useful for gdb sessions
50 14:44 < xan> GDK_DEBUG=nograbs
51 ```
OLDNEW
« no previous file with comments | « docs/linux_debugging.md ('k') | docs/linux_debugging_ssl.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698