From af3d2051d0a08ca90df50f6ffbfcb788df4c0d50 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Sat, 23 Feb 2013 18:40:25 +0100 Subject: webinspector: Print sent/received message plist for easier debugging --- src/webinspector.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/webinspector.c b/src/webinspector.c index ac87ce0..52899ca 100644 --- a/src/webinspector.c +++ b/src/webinspector.c @@ -182,6 +182,8 @@ webinspector_error_t webinspector_send(webinspector_client_t client, plist_t pli plist_dict_insert_item(outplist, "WIRFinalMessageKey", plist_new_data(buf, length)); free(buf); + debug_plist(outplist); + res = webinspector_error(property_list_service_send_binary_plist(client->parent, outplist)); plist_free(outplist); if (res != WEBINSPECTOR_E_SUCCESS) { @@ -257,5 +259,7 @@ webinspector_error_t webinspector_receive_with_timeout(webinspector_client_t cli return WEBINSPECTOR_E_PLIST_ERROR; } + debug_plist(*plist); + return res; } -- cgit v1.1-32-gdbae