Sunday, August 31, 2014

Re: GWT using SDM throws error at app startup

The stack trace says the error is inside setBookingSheetRowData().

But just don't be afraid to look at the JS code. Open Chrome Dev Tools, go to the sources tab, open adloader-0.js (and wait a bit as it is maybe a large file), hit ctrl + g and enter the line numbers of the stack trace. For setBookingSheetRowData() it is line number 104761 and for $getView it is 31671. The JS code will look relatively similar to your Java code, as GWT does not do any optimizations.
Then you can set a breakpoint to see what is going on. You can also set a breakpoint on "java" level by going to the sources tab, hit ctrl + o to open LoadAdsPrepareGridPresenter.java provided by source maps and then set a breakpoint for view.setBookingSheetRowData(model.getGridBookingSheetRowModels());

Some shortcuts to know: https://developer.chrome.com/devtools/docs/shortcuts

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment