Welcome back to Quick Code Craft!
I'm your host, Deep, and here at Quick Code Craft, we explore small tips that multiply your productivity. 💻✨
Last time, we covered how to compile and run your code using keyboard shortcuts. Today, we’re taking it up a notch—let's dive into the world of debugging with some IntelliJ IDEA shortcuts! 🐞🔍
---
Starting Debugging:
The first step in debugging is… well, to actually start debugging! 😅
You might remember from last time that to run your code, you hit *Shift + F10**. To start debugging, it’s almost the same: just hit **Shift + F9* instead. Close, right?
When you press **Shift + F9**, IntelliJ compiles your code and runs it in debug mode.
---
Step Over vs. Step Into:
Once in debug mode, you’ll likely want to step over or step into certain method calls. Here’s where the real fun begins:
*Step Over (F8):*
Want to skip diving into that method? Just press *F8* to step over it. You’ll bypass the method and move on to the next line of code.
*Step Into (F7):*
But if you do want to explore what’s inside that method, just press *F7* to step into it. You’ll dive right in and see what’s going on inside.
---
Step Out & Resume:
Let’s say you’ve stepped into a method but now want to get back out
*Step Out (Shift + F8):*
Press **Shift + F8**, and IntelliJ will take you back to where the method was called, resuming execution from there.
*Resume Execution (F9):*
And when you’re ready to let the program continue running until it hits the next breakpoint, just press **F9**. Simple, right? 🚀
---
*Shortcut Recap:*
Here’s a quick recap to lock in those shortcuts:
**F8**: Step over
**F7**: Step into
**Shift + F8**: Step out
**F9**: Resume execution
Honestly, IntelliJ IDEA shortcuts are like building blocks—they just stack on top of each other. You learn one, and suddenly, you’ve got 3-4 new tricks up your sleeve! 🎩✨
That’s it for today! Now go ahead, fire up IntelliJ, and give these debugging shortcuts a try and let me know how it went!
This is Deep, signing off from Quick Code Craft, where we learn to multiply productivity one shortcut at a time. Until next time—**happy coding!** 👾
Watch video Keyboard shortcuts - Debugging online without registration, duration hours minute second in high quality. This video was added by user quick-code-craft 26 October 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 31 once and liked it 1 people.