On older systems such as Windows 7 + IE10, calling "alert()" in the PAC file would cause a dialog being shown. However, with Windows 8.1 no dialogs are displayed even if IE11 seems to be making use the PAC.
My current situation is IE11 can use the (SOCKS) proxies (returned by the PAC) just fine, but Modern UI apps are completely disconnected from Internet. It seems IE11 and Modern UI treat the PAC setting differently but I cannot find a way to debug it.
In summary, my questions are
- How can I debug the PAC with IE11 on Windows 8.1?
- How can I debug the PAC with Modern UI on Windows 8.1?
IE11 PAC-file changes
There were changes made by Microsoft to how IE11 handles local PAC files. You can read about them here or see below for some quick info.
Also note, that
alert()
statements no longer work as of Windows 8.DEBUG PAC File with AUTOPROX (Download Link)
There's a tool
pactester
that comes as part of pacparser, that was mentioned in the comments by @oviava, which works on Windows and Unix-based systems including Linux (e.g.sudo apt install libpacparser1
) and MacOS (e.g.brew install pacparser
). This can be used to test PAC files - it will show the expected behaviour for that URL or will report any errors with the PAC file. e.g.