Verbose logging can be enabled for PhantomJS by setting the debug flag on the client. This is the same as setting the PhantomJS
--debug=true command line option.
The client log can be inspected after making a request.
The client log contains some helpful information specific to the PhantomJS library. In some cases these are present in the log even if debugging is disabled.
JonnyW\PhantomJs\Exception\SyntaxException will be raised. Debug information about any validation errors can be found by calling a
getErrors() helper method on the exception instance. This will return an array of error information.
Due to a limitation in the validation logic, scripts are currently minified to a single line before validating. This makes the
lineNumbervalue contained in the error output redundant. This is due to be fixed in a future release.