From the course: Learning GWT

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Set breakpoints and inspect variables

Set breakpoints and inspect variables

From the course: Learning GWT

Start my 1-month free trial

Set breakpoints and inspect variables

- [Instructor] Here we are inspecting our Java owner class in the Sources tab of the browser development tools, or DevTools of Chrome. This is the source map of our JavaScript, mapped back to our Java. I have the owner class open here for us to inspect, and just to recall, this is how you navigate to it. I assume you are somewhat familiar with the common debugging practices, like setting breakpoints, and inspecting variables, that type of thing. But I don't think it would hurt to review some of those tools here in the browser, since we typically have done this in the IDE, or in Eclipse. To set a breakpoint in the source map Java code, like we see here, all you have to do is click the line number. For instance, line 59, we can set a breakpoint to stop just before rates is assigned the value from the web service. Note how the breakpoint has been added to our breakpoint section in the right panel. So, now let's refresh the page and see if that breakpoint takes and it does. The breakpoint…

Contents