Open zafar-saleem opened 6 years ago
I am using below code and it returns error as true and ph is undefined.
error
ph
phantom.create((error, ph) => { console.log(error); // true console.log(ph); // 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?
Looks like this project is dead.
I am using below code and it returns
error
as true andph
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?