diff libpurple/util.c @ 30988:839f3d63acab

Useful snippet of debugging that helped me out.
author John Bailey <rekkanoryo@rekkanoryo.org>
date Sat, 18 Sep 2010 01:33:34 +0000
parents c60c9c95bb00
children c5ba7dd399fa 1b67c62c1051
line wrap: on
line diff
--- a/libpurple/util.c	Sat Sep 18 00:23:10 2010 +0000
+++ b/libpurple/util.c	Sat Sep 18 01:33:34 2010 +0000
@@ -2812,6 +2812,10 @@
 	progname = g_find_program_in_path(argv[0]);
 	is_valid = (progname != NULL);
 
+	if(purple_debug_is_verbose())
+		purple_debug_info("program_is_valid", "Tested program %s.  %s.\n", program,
+				is_valid ? "Valid" : "Invalid");
+
 	g_strfreev(argv);
 	g_free(progname);