If built with G_ENABLE_DEBUG and the MIDORI_BOOKMARKS_DEBUG variable
is set, all SQL queries on the bookmark db will be printed to stderr.
See: https://bugs.launchpad.net/midori/+bug/983821
'MIDORI_UNARMED=1 _build/default/midori/midori'
+If you want to test bookmarks, you can enable database tracing:
+
+'MIDORI_BOOKMARKS_DEBUG=1 _build/default/midori/midori'
+
To disable Netscape plugins, use MOZ_PLUGIN_PATH=/.
To debug extensions you can specify the path:
#include <glib/gi18n.h>
+#ifdef G_ENABLE_DEBUG
+void midori_bookmarks_dbtracer(void* dummy, const char* query)
+{
+ g_printerr ("%s\n", query);
+}
+#endif
+
void
midori_bookmarks_add_item_cb (KatzeArray* array,
KatzeItem* item,
return NULL;
}
+#ifdef G_ENABLE_DEBUG
+ if (g_getenv ("MIDORI_BOOKMARKS_DEBUG"))
+ sqlite3_trace (db, midori_bookmarks_dbtracer, NULL);
+#endif
+
if (sqlite3_exec (db,
"CREATE TABLE IF NOT EXISTS "
"bookmarks (uri text, title text, folder text, "