From the course: Kotlin Essential Training: Functions, Collections, and I/O
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Setting breakpoints - Kotlin Tutorial
From the course: Kotlin Essential Training: Functions, Collections, and I/O
Setting breakpoints
- [Instructor] How do we fix our code when something isn't working right? Usually, we need to start by understanding which lines of code might be causing the problem. While we sometimes might intuitively understand the issue, we often find ourselves needing to debug our code line by line to track down those hard-to-squash issues. Thankfully, IntelliJ has a number of built-in tools to help this debugging process. We're going to start building up our debugging toolbox by learning how to set breakpoints in our code and run the bugger to inspect the execution of code at those breakpoints. Now, before we dive too deeply into the tooling, let's make sure we are all on the same page when we say debugging. For me, debugging is anything I can do to help understand why my code isn't working. That might be reading through code line by line, talking through my code with my rubber duck, or using my debugging tools such as Logging or…