Re: [gwt-contrib] debugging of JSNI code

2010-02-16 Thread Sanjiv Jivan
Are you saying that the JS debugger automatically triggers even today when
one tries to step into a JSNI method?

I know that manually adding a debugger; command within JSNI code will
trigger the JS debugger, and I also have a helper GWT JSNI method called
SC.debugger() which I can add anywhere in my GWT code but what I was hoping
for is the debugger command automatically be issued by the GWT plugin when
one tries to step into JSNI code from my Java IDE.

If this is already the default behavior, then shame on me :) I can try it
out later today as well but I don't recollect seeing this behavior.

On Tue, Feb 16, 2010 at 2:07 PM, Scott Blum sco...@google.com wrote:

 Sanjiv, I've done this before in Internet Explorer.  Actually, this worked
 even before OOPHM, back in 1.5 or 1.6 when the GWT Hosted Mode embedded IE
 on Windows.  Haven't tried it with other browsers.

 On Tue, Feb 16, 2010 at 8:41 AM, Sanjiv Jivan sanjiv.ji...@gmail.comwrote:

  Hi,
 A while ago I had asked the possibility of being able to step through JSNI
 code when running in hosted mode as IDE's like IntelliJ support remote
 Javascript debugging from within the IDE itself much like Java debugging. I
 was informed that currently the only debug information collected was the
 line number at the boundary of the JSNI method and I can see this when
 running through a JS debugger.

 It would be great if one day this feature can be added however for now I
 was wondering how easy / feasible it would be to dynamically trigger the JS
 command debugger; when they user does a Step Into from the Java
 debugger. The newer versions of Safari has a very good debugger that
 performs well. The hosted mode plugin for Safari can have the Enable Script
 Debugging setting turned on for the hosted mode session. Firebug also
 responds to the debugger command. Similarly the IE Visual Studio /
 Javascript debugger is launched if installed when the debugger command is
 encountered.

 Any comments / thoughts on this?

 Thanks,
 Sanjiv

 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors


  --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Re: [gwt-contrib] debugging of JSNI code

2010-02-16 Thread Scott Blum
Ooops, my bad.  I agree, what you describe would be the ideal user
experience.  No one here is working on that at the moment, that I'm aware.

On Tue, Feb 16, 2010 at 2:42 PM, Sanjiv Jivan sanjiv.ji...@gmail.comwrote:

 Are you saying that the JS debugger automatically triggers even today when
 one tries to step into a JSNI method?

 I know that manually adding a debugger; command within JSNI code will
 trigger the JS debugger, and I also have a helper GWT JSNI method called
 SC.debugger() which I can add anywhere in my GWT code but what I was hoping
 for is the debugger command automatically be issued by the GWT plugin when
 one tries to step into JSNI code from my Java IDE.

 If this is already the default behavior, then shame on me :) I can try it
 out later today as well but I don't recollect seeing this behavior.

 On Tue, Feb 16, 2010 at 2:07 PM, Scott Blum sco...@google.com wrote:

 Sanjiv, I've done this before in Internet Explorer.  Actually, this worked
 even before OOPHM, back in 1.5 or 1.6 when the GWT Hosted Mode embedded IE
 on Windows.  Haven't tried it with other browsers.

 On Tue, Feb 16, 2010 at 8:41 AM, Sanjiv Jivan sanjiv.ji...@gmail.comwrote:

  Hi,
 A while ago I had asked the possibility of being able to step through
 JSNI code when running in hosted mode as IDE's like IntelliJ support remote
 Javascript debugging from within the IDE itself much like Java debugging. I
 was informed that currently the only debug information collected was the
 line number at the boundary of the JSNI method and I can see this when
 running through a JS debugger.

 It would be great if one day this feature can be added however for now I
 was wondering how easy / feasible it would be to dynamically trigger the JS
 command debugger; when they user does a Step Into from the Java
 debugger. The newer versions of Safari has a very good debugger that
 performs well. The hosted mode plugin for Safari can have the Enable Script
 Debugging setting turned on for the hosted mode session. Firebug also
 responds to the debugger command. Similarly the IE Visual Studio /
 Javascript debugger is launched if installed when the debugger command is
 encountered.

 Any comments / thoughts on this?

 Thanks,
 Sanjiv

 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors


  --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors


  --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Re: [gwt-contrib] debugging of JSNI code

2010-02-16 Thread John Tamplin
On Tue, Feb 16, 2010 at 3:38 PM, Scott Blum sco...@google.com wrote:

 Ooops, my bad.  I agree, what you describe would be the ideal user
 experience.  No one here is working on that at the moment, that I'm aware.


It isn't clear how the plugin would know you wanted to break on entry into
the JSNI code.  It seems like it would take deep integration between the
Java debugger and the DevMode infrastructure.  Aside from that, there is the
technical issue of how the plugin could inject the breakpoint reliably into
the JSNI just when you wanted it without affecting anything else -- probably
solvable, but it would likely take some effort.

-- 
John A. Tamplin
Software Engineer (GWT), Google

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors