I am using below code and it returns error as true and ph is undefined.
phantom.create((error, ph) => {
console.log(error); // true
console.log(ph); // undefined
});
Now the thing is that error is true but I am not sure what exactly error is(probably ph is undefined) but I want to know what exactly the error is? How can I debug above very simple code to figure out what exactly is going on?
I am using below code and it returns
erroras true andphis undefined.phantom.create((error, ph) => {console.log(error); // trueconsole.log(ph); // undefined});Now the thing is that error is true but I am not sure what exactly error is(probably ph is undefined) but I want to know what exactly the error is? How can I debug above very simple code to figure out what exactly is going on?