Plugin Debugging Script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I just made a tiny little shell script that helps me a bit with
debugging of plugins, and I'd like to share it. It really is a
lifesaver and saves the time spent doing ps -A, and then typing in the
process manually in gdb.

#!/bin/bash
plug_debug=`ps -eo pid,comm | grep $1 | sed s/'$1'//`; gdb attach $plug_debug

Just that simple, it accepts the command line argument of the name of
the plugin you want to debug, and then launches gdb :), was a nice
learning experience to figure out how to use sed.

Brohan
_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux