phantomjs --config=phantom.json --remote-debugger-port=9001 some-file.js
phantomjs --config=phantom.json some-file.js
{
"diskCache": true,
"ignoreSslErrors": true,
"loadImages": false,
"maxDiskCacheSize": 1000,
"remoteDebuggerPort": 9001,
"remoteDebuggerAutorun": true,
"outputEncoding": "utf8"
}