Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
howto:panel_plugin_debug [2009/01/14 07:29] 69.157.9.187howto:panel_plugin_debug [2009/01/14 12:53] 88.172.125.130
Line 51: Line 51:
 If you want an interactive debug session with GDB, you can simply find the process id of the plugin by running If you want an interactive debug session with GDB, you can simply find the process id of the plugin by running
  
-    gdb /usr/local/libexec/xfce4/panel-plugins/clipman $(pidof clipman)+  $ gdb /usr/local/libexec/xfce4/panel-plugins/clipman $(pidof clipman) 
 +  ... 
 +  (gdb) continue
  
-which will find the PID of clipman, and debug it using the debug symbols in /usr/local/libexec/xfce4/panel-plugins/clipman+which will find the PID of clipman, and debug it using the debug symbols in /usr/local/libexec/xfce4/panel-plugins/clipman. For this to work, clipman must already be running. You can also attach GDB to a processfrom the GDB prompt by using the attach command: 
 + 
 +  (gdb) attach $PID 
 + 
 +Again, the plugin must already be loaded for this to work.
  
 ====== Some tips ====== ====== Some tips ======