-
-
Notifications
You must be signed in to change notification settings - Fork 493
Debugging
Tim Hall edited this page Jan 16, 2015
·
3 revisions
Debugging VBA-Web can be difficult due to the complexity of the library, but I have found the following tips helpful for for getting an idea of what's occurring under the surface:
-
Enable logging with
WebHelpers.EnableLogging = True
. This will log the raw requests and responses to the Immediate Window (Ctrl + g) -
To better understand what's stored in Headers, UrlSegments, Cookies, Body, and other Dictionaries/Collections,
Set a breakpoint at the issue, open Immediate Window (Ctrl + g), and use the following (?
is short forDebug.Print
):? WebHelpers.ConvertToJSON(...Dictionary/Collection...)
For example to view the
Headers
saved forYourRequest
, use:? WebHelpers.ConvertToJSON(YourRequest.Headers)