does someone know if its posible to debug a proxy.pac, this file is written in Javascript. how can it be attached to some debug engine like Visual Studio or any other IDE
To use it, a PAC file is published to a HTTP server, and client user agents are instructed to use it, either by entering the URL in the proxy connection settings of the browser or through the use of the WPAD protocol. The URL may also reference a local file as for example: file:///etc/proxy.pac .
Log into your Web Filter and copy the URL of your uploaded PAC files. You can find your PAC file URL by navigating to Web Filter > Proxy Server under PAC Files. 2. Open Google Chrome and open the Chrome menu.
Test the PAC file URL being pushed out by DHCP, do so by using the PAC file URL in the browser proxy settings configured as an explicit PAC file. This will verify whether the PAC file or PAC file server itself is the issue. Review the Windows Registry to confirm the URL being pushed out by WPAD DHCP.
A PAC file is a JavaScript function definition for FindProxyForURL(url, host). The complexity of the function varies with the requirements of each organization. Because PAC files are written in JavaScript, they support the structure, logic, and extensibility of JavaScript.
There is "pactester" on Google Code. Works beautifully.
Edit:
The tester has now been moved into the parser project:
PRB: Cannot Debug a .pac File from Visual InterDev (or "How to debug a .pac File") could help. Working with IE 8 and Visual Studio 2008 here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With