Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Attach a debugger to code running inside a v8 context #16

Closed
benjamine opened this issue Jan 26, 2012 · 2 comments
Closed

Attach a debugger to code running inside a v8 context #16

benjamine opened this issue Jan 26, 2012 · 2 comments

Comments

@benjamine
Copy link

I'm using the headless browser Zombie.js, wich internally uses Contextify to create a context for each browser window.
Is there a way I can attach a debugger to the code running inside one of this contexts?
(That would allow me to debug the client-side javascript in that simulated browser).

@brianmcd
Copy link
Owner

I haven't used the V8 debugger much, so I'm not sure how one would go about doing this. I can definitely see how this would be a useful feature. Right now, I don't have the time to make this happen, but I'd definitely accept any pull requests for it.

With Zombie, you can at least manually probe the context using Browser#evaluate() if you have a reference to a loaded Browser object, if that helps.

@benjamine
Copy link
Author

I've using evaluate() to get some clues and found the problem I was strugling with.
Adding debugging really looks hard to implement, and I lack the necessary skills for it, otherwise I'll try to help.
Thanks for you responses, and thanks for this great piece of software!
Regards

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants