Friday, June 28, 2024

Re: is it possible to debug GWT projects (breakpoints, step through code etc) ?

Hi Craig,
Ahh right, so although it's working at the moment with  appengine:run this is being phased out so I'd better be moving to a standalone server.

On Friday 28 June 2024 at 03:19:18 UTC+1 Craig Mitchell wrote:
> Only reason I ask is I've just had the app updated from java 7 because Google dropped support - and the new project uses "appengine:run" for running locally. Should we be doing it differently?

Google are asking everyone to move to the "Second-generation Java runtimes".  https://cloud.google.com/appengine/migration-center/standard/migrate-to-second-gen/java-differences

This also includes upgrading some services, which can be a big task.  I needed to upgrade from using Datastore, to using Firestore in Datastore mode, which was a large amount of code change:  https://cloud.google.com/datastore/docs/firestore-or-datastore

I believe the bundled app engine web server "appengine:run" is now deprecated.  You now need to provide your own web server.  All Google gives you is an installed Java version, and Java libraries to interface with their systems.  How you run them, is now up to you.  Check out the "Framework flexibility" section:  https://cloud.google.com/appengine/migration-center/standard/migrate-to-second-gen/java-differences#framework_flexibility

Disclaimer:  Google has legacy bundled services you can use, and that might include a web server somehow.  I haven't looked too much into it, as I wanted my project to be on the latest, and get off all the legacy stuff.  Plus, once you get off the legacy stuff, you are no longer on Googles proprietary web server and datastore, so moving your app somewhere else becomes a lot easier if you ever needed to.

Shameless self promotion:  I just finished a project for Nasdaq, so I'll be looking for work in the next few weeks, if you needed someone with experience, happy to chat:  https://www.linkedin.com/in/craigmit75/ 

Cheers.

On Friday 28 June 2024 at 1:28:47 am UTC+10 Daniel Webb wrote:
Hi Craig,

On Wednesday 26 June 2024 at 02:56:31 UTC+1 Craig Mitchell wrote:
btw:  "appengine:run" is deprecated.  You won't be able to do any updates to your app until you upgrade.  https://cloud.google.com/appengine/docs/legacy/standard/java/maven-reference  But you probably already knew this.  🙂

Whaat, are you sure?! 
Only reason I ask is I've just had the app updated from java 7 because Google dropped support - and the new project uses "appengine:run" for running locally. Should we be doing it differently?

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/c1bbce22-3f86-4fe1-ad26-0a28f919e72cn%40googlegroups.com.

No comments:

Post a Comment