diff options
| author | 2013-02-23 18:40:25 +0100 | |
|---|---|---|
| committer | 2013-02-23 18:40:25 +0100 | |
| commit | af3d2051d0a08ca90df50f6ffbfcb788df4c0d50 (patch) | |
| tree | 587689a0527663cce139238fa082ee6efffd6935 /src/webinspector.c | |
| parent | 4245f6958303a3e044dc0afd38eecd593294a9e7 (diff) | |
| download | libimobiledevice-af3d2051d0a08ca90df50f6ffbfcb788df4c0d50.tar.gz libimobiledevice-af3d2051d0a08ca90df50f6ffbfcb788df4c0d50.tar.bz2 | |
webinspector: Print sent/received message plist for easier debugging
Diffstat (limited to 'src/webinspector.c')
| -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 | |||
| 182 | plist_dict_insert_item(outplist, "WIRFinalMessageKey", plist_new_data(buf, length)); | 182 | plist_dict_insert_item(outplist, "WIRFinalMessageKey", plist_new_data(buf, length)); |
| 183 | free(buf); | 183 | free(buf); |
| 184 | 184 | ||
| 185 | debug_plist(outplist); | ||
| 186 | |||
| 185 | res = webinspector_error(property_list_service_send_binary_plist(client->parent, outplist)); | 187 | res = webinspector_error(property_list_service_send_binary_plist(client->parent, outplist)); |
| 186 | plist_free(outplist); | 188 | plist_free(outplist); |
| 187 | if (res != WEBINSPECTOR_E_SUCCESS) { | 189 | if (res != WEBINSPECTOR_E_SUCCESS) { |
| @@ -257,5 +259,7 @@ webinspector_error_t webinspector_receive_with_timeout(webinspector_client_t cli | |||
| 257 | return WEBINSPECTOR_E_PLIST_ERROR; | 259 | return WEBINSPECTOR_E_PLIST_ERROR; |
| 258 | } | 260 | } |
| 259 | 261 | ||
| 262 | debug_plist(*plist); | ||
| 263 | |||
| 260 | return res; | 264 | return res; |
| 261 | } | 265 | } |
