NBAppengine with GWT unable to debug

  7 posts   Feedicon  
Replies: 6 - Last Post: June 23, 2010 19:46
by: shaottan
showing 1 - 7 of 7
 
Posted: November 09, 2009 18:40 by harishashim
Hello!

I am using Netbeans 6,8 beta here with the latest Appengine (appengine-java-sdk-1.2.6) GWT (gwt-windows-1.7.1).

Running the project is not a problem.

Debugging is different story. It got stuck at

[OUTPUT: Google App Engine]
runserver-debug:
[java] Listening for transport dt_socket at address: 8765

I know the port is correct. My silly work around is to debug sample guestbook project (which is not GWT). Stop it after it open the page (and the app engine server is already running in debug mode). And then debug the GWT project. This work, however I'm not comfortable with it.

So would like to troubleshoot and maybe a way to fix this.

Thanks in advance!
Haris
 
Posted: November 09, 2009 18:48 by harishashim
Just to add that it is in the issue tracking as

http://kenai.com/jira/browse/NBAPPENGINE-41
 
Posted: November 10, 2009 09:20 by harishashim
After further troubleshooting it looks like for GWT debugging. There is a specific icon in Debug menu that initiate hosted mode debugging. Clicking this result to what I expect (and accomplish the same result as the silly work around).

So at the moment I am a happy debugger Wink

Yet still there is this question about what should happen when Debug icon in the toolbar is clicked (or CTR F5). At the moment it is not debugging.

Thanks for all the views. Maybe there was no reply because GWT is not popular choice with nbappengine user? Just curious.

Good day!


 
Posted: November 12, 2009 11:02 by harishashim
Clicking the icon does not really works. Debugging JDO result to exception.

Another work arround is ...

1. Run the GWT project using the normal way (not debug, just run it)

2. Go to files window (CTR + 2), expand build xml and look for debug-connect-gwt-shell.

3. Run it by right click choose run.

Still would like to know if other people is facing this problem (i.e. not able to debug GWT project)

Hope that the info so far help other people with the same problem.

Wish that all the info so far will be useful to the maintainer if he/she decide to troubleshoot this.

Through debugging the ant script I believe that it got stuck at build-gwt.xml line 71

<nbdeploy debugmode="true" clientUrlPart="${client.urlPart}"/> <<<==== LINE 71
<antcall target="connect-debugger"/>
<antcall target="debug-connect-gwt-shell"/>

Unfortunately I don't really understand how this pile of steaming ant #$% function.

At least the work arround works (for now!)

Anyway it is hard to believe that I am the only person having this problem. Ether that or nobody using netbeans + appengine + GWT. Pity.
 
Posted: November 21, 2009 23:53 by marigan
Hi,

thanks for this workaround ... i will try to implement it into plugin to get it fully functional.

-m
 
Posted: May 17, 2010 13:55 by MesterLob
I've loaded the lastest plugin and this still seems to be an issue.....did a fix get implemented? Also I get ......local_db.bin, does not exist. It will be created. But it doesn't create local_db.bin. Can anyone help please?
 
Posted: June 23, 2010 19:46 by shaottan
Here is the correct solution to this problem. App engine is being suspended when it starts.


Change the suspend=y to suspend=n and it seems to workf fine with Netbeans 6.8.

ant-deploy.xml


<arg value="--jvm_flag=-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=${appengine.debug.port}"/>
<arg value="--jvm_flag=-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=${appengine.debug.port}"/>


Then you can click the debug button in netbeans and everything works.

Very annoying though is that the ant-deploy.xml file is overwritten by netbeans everytime it is closed and opened.
showing 1 - 7 of 7
Replies: 6 - Last Post: June 23, 2010 19:46
by: shaottan
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close