How to debug Java with IntelliJ: breakpoints, evaluate expression, watches and variable view

4 minute read - IntelliJ Java For Testers JUnit

I have deliberately created a failing test. Obviously deliberately since I would never ever create such simple issues in code. I’m far too experienced for that. :) Even though these issues were created deliberately I still need to know how to debug code. In this blog post I’ll describe how I debug Java using IntelliJ. Watch on YouTube You can also ‘watch’ this post on YouTube I have some code which fills a dynamic array with “*” to simulate a set of ‘pixels’ - whatever.

Do "Enable Auto-Import" in IntelliJ for "Maven projects need to be imported"

1 minute read - IntelliJ Java For Testers Maven

If you see the “Maven projects need to be imported” popup in IntelliJ, then do click “Enable Auto-Import”. You very often see this when you first create new projects and it is easy to miss. But many of my “Why isn’t it finding this class” and “Why didn’t it import that” queries, are because I haven’t noticed the popup sitting patiently in the top right, waiting for me to respond.