The purpose of this studio is to expand your current debugging strategies. First, as a group, you will discuss your current debugging strategies. Next, you will explore the debugger tools addressed in this chapter.
This studio will use a previous studio assignment to explore IntelliJ’s Debugger. On your machine, open up your copy of java-web-dev-studio7 in IntelliJ.
Review with the group one error you encountered when working on your version of lesson 7’s studio. This could be the result of a typo or a logical error.
Now, check out the debugging
branch of the studio repo.
Review the code and then practice using IntelliJ’s debugging tools.
To get started, try the following:
Main.java
. Make a note of where you expect the program to break in its execution.cd.name
as a Watch expression in the Variables Pane of the Debugger.BaseDisc.java
. Anticipate what you expect to see as the last line in the Variables Pane when the debugger stops.Take your debugging skills one step further by answering these questions.
dvd.aName
as a Watch expression and add a breakpoint. Can you explain the output in the Variables Pane?Once you have worked through the studio’s codebase, open up a piece of code you have been struggling with. In what ways, could the debugging tools help you figure out what is going on with the code?
Additional Resources for IntelliJ’s Debugger