June 2018
Intermediate to advanced
316 pages
6h 34m
English
The debug tools in IntelliJ IDEA have two very similar tabs—Threads and Frames. The Threads pane give you access to the list of threads that exist as of the current breakpoint. The Frames pane shows the current method or function that's being invoked. In this tab, you can get more detailed information about local variables. Let's return to our last example:
class Teaclass Coffeeclass Cup<out T>(val drink: T)fun main(vars: Array<String>) { val cupOfTea = Cup(Tea()) val cupOfCoffee = Cup(Coffee())}
We'll set a breakpoint at the line val cupOfTea = Cup(Tea()).
Read now
Unlock full access