12

I recently experienced a problem with a new pac file with chrome, (same pac file with IE and Firefox works).

I supposed that my problem is due to myIpAddress() function, see this post, which do not return my main ip address.

I would like to make some tests to debug pac file, but according to this post, debug function is no longer supported.

I also tried to use some options from this post.

In the chrome://net-internals/#proxy tab, I see which pac file is used, but nothing more.

And with the chrome://net-internals/#events tab, I see each request, but when I filter events with PROXY_SCRIPT_DECIDER, it returns no events.

I think my problem is related to myIpAddress, so how to test myIpAddress function, and is there a way to debug pac file without alert() ?

smonff
  • 346
  • 2
  • 5
  • 15
Antoine
  • 305
  • 1
  • 3
  • 11

3 Answers3

8

I didn't find the information anywhere, but chrome shows alert in chrome://net-internals/#events tab with description : PAC_JAVASCRIPT_ALERT.

Also you can find what chrome use as proxy in tab : chrome://net-internals/#proxy

smonff
  • 346
  • 2
  • 5
  • 15
Antoine
  • 305
  • 1
  • 3
  • 11
0

As of 2020, I'd do it with:

chrome://net-export/

and it's companion netlog-viewer to browse the information.

smonff
  • 346
  • 2
  • 5
  • 15
-1

You can try out https://github.com/MamoruAsagami/PacTestBench. You need Java runtime environment in to run it, however.

  • It requires -myIpAddress as a parameter, so it can't be used for debugging that feature. Plus, it only seems to be able to test whether the right proxy string is returned. That's less helpful than logging internal variable values. – Quantum7 Jan 10 '19 at 14:10