How to debug PAC processing

When the PAC is processed (specifically findProxyForURL() is run) - what is the best way to debug that?

Some browsers provide ways to understand what is happening inside that function (ie. through alert() you can show values of specific variables as they are set during execution).

Is there a way to debug the PAC processing on iOS? For instance by logging some user-controlled output to the console?

When the PAC is processed (specifically findProxyForURL() is run) - what is the best way to debug that? Is there a way to debug the PAC processing on iOS? For instance by logging some user-controlled output to the console?

There is not a great way to debug this without having direct access to the server or endpoint where the PAC is sitting to see the logs that are passing through the server. What I usually start off by doing is testing one blanket PROXY statement to know that the PAC file is working and then add additional rules from there.

How to debug PAC processing
 
 
Q