Is there a way to debug?
Closed this issue · 1 comments
I notice that each time a chromeless
command is run, it gets entered into a queue, so setting a breakpoint only takes me to the point at which it is queuing commands, but not executing them. Ideally I'd like to set a breakpoint when the commands are being run so I can find ways to click on an element that doesn't have a class or an id. Any ideas?
I'm using node --inspect-brk chromeless-script.js
to debug
@robustdj the actual execution happens within Chrome, so adding breakpoints to the Chromeless code won't work. The commands get sent to Chrome via the Chrome Debugging Protocol which runs over websockets after which Chrome then executes the commands within the page you've loaded within Chrome. Unfortunately this makes it impossible to add breakpoints within the same code from which you run Chromeless.