diff options
author | Martin Szulecki | 2013-02-23 18:40:25 +0100 |
---|---|---|
committer | Martin Szulecki | 2013-02-23 18:40:25 +0100 |
commit | af3d2051d0a08ca90df50f6ffbfcb788df4c0d50 (patch) | |
tree | 587689a0527663cce139238fa082ee6efffd6935 | |
parent | 4245f6958303a3e044dc0afd38eecd593294a9e7 (diff) | |
download | libimobiledevice-af3d2051d0a08ca90df50f6ffbfcb788df4c0d50.tar.gz libimobiledevice-af3d2051d0a08ca90df50f6ffbfcb788df4c0d50.tar.bz2 |
webinspector: Print sent/received message plist for easier debugging
-rw-r--r-- | src/webinspector.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |