Hi,Is remote debugging of JavaScript code expected to work? For me, on Chrome 22 beta (Linux) or 21 (Mac), remote debugging works nicely for examining the DOM structure, but not for working with JavaScript.I'm working on event listeners that are hooked up to FOCUS/BLUR events, and remote debugging would be a great way to work with this code without the debugger window (e.g. just clicking "next line") disturbing focus.Unfortunately, browsing the code doesn't work when connected remotely,
and breaking on DOM changes only begins to work. I can right-click on an element of interest in the DOM view and select "break on attributes modification", go to the other Chrome instance and make the right JavaScript trigger; execution does pause, and I do see a stack trace, but the JavaScript source doesn't show up, and "resuming" doesn't actually free the target app to go forward. Instead, the target sits in "Paused in debugger" indefinitely.
On Wed, Sep 12, 2012 at 3:02 AM, <jami...@google.com> wrote:
Hi,Is remote debugging of JavaScript code expected to work? For me, on Chrome 22 beta (Linux) or 21 (Mac), remote debugging works nicely for examining the DOM structure, but not for working with JavaScript.
<snip>
Unfortunately, browsing the code doesn't work when connected remotely,
Does it mean that you don't see scrips in the Sources panel?
and breaking on DOM changes only begins to work. I can right-click on an element of interest in the DOM view and select "break on attributes modification", go to the other Chrome instance and make the right JavaScript trigger; execution does pause, and I do see a stack trace, but the JavaScript source doesn't show up, and "resuming" doesn't actually free the target app to go forward. Instead, the target sits in "Paused in debugger" indefinitely.I checked this with a couple of simple scenarios and it worked just fine for me like with in-browser debugger. Do you have a reproduction case that you could share with us?
Thanks, Vsevolod! Is there any way to work around the socket buffer size? From looking at the code, it looks like it's hardcoded rather than a configurable parameter...
Please do. I fixed the buffer limitation a while ago and it should work now.
Regards
Pavel