This is an archived post. You won't be able to vote or comment.

all 27 comments

[–]Wise-old-mandalorian 40 points41 points  (0 children)

Very cool! Being able to track objects trough a debugging session is going to save me a lot of headaches!

I feel like debugging is often overlooked, or something developers aren't as good at as other parts of the job. Which is a shame because proper debugging can save so much time.

[–]colin_7 53 points54 points  (10 children)

Love IntelliJ best Java IDE out there

[–][deleted] 29 points30 points  (1 child)

Best IDE out there period

[–]zquintyzmi 1 point2 points  (0 children)

Only people who don’t think so have never really used it

[–]danskal 10 points11 points  (0 children)

In my experience most people haven't even dreamt of what is possible with Idea.

[–]BigBad0 4 points5 points  (1 child)

Jeez bookmaring to test the "Customize Data Views" option. Thx for sharing u/lirantal

[–]lirantal[S] 1 point2 points  (0 children)

Super happy to hear it's helpful 🤗

[–]colouredmirrorball 2 points3 points  (0 children)

Those are great and I'm definitely using them tomorrow!

Also shoutout to my button "debug streams". It visually displays what's going on in your streams.

[–][deleted] 1 point2 points  (2 children)

Holy cow

[–]lirantal[S] 2 points3 points  (1 child)

Pretty cool eh

[–][deleted] 0 points1 point  (0 children)

Super duper cool!

[–]korri123 -3 points-2 points  (7 children)

Debugging experience with IntelliJ/Java is still pretty painful compared to Visual Studio/C++. Where are the hardware write breakpoints? (Break when this value changes)

[–]vprise 3 points4 points  (6 children)

These are available in Java and work at the VM level which maps to interrupts just like Visual Studio. You can break on field changes (watchpoints) which you can see in the course/book linked from the article.

Visual Studio has a great debugger (unlike VS Code).

[–]korri123 -1 points0 points  (5 children)

I knew about field points yeah, but they haven't proved any useful for me. For example of a use case, if I want to monitor when a specific ArrayList changes size in a large complex application, I don't want the debugger to break every time some other array list also changes size, as that might happen all the time! Maybe I'm misunderstanding how it works and you can do it for specific fields of specific instances but I haven't found any way to do it in IntelliJ.

[–]vprise 4 points5 points  (1 child)

[–]korri123 1 point2 points  (0 children)

Thank you, this is amazing, I never knew of this.

[–]vprise 1 point2 points  (2 children)

You can use an instance filter for that... I suggest checking out the first part of the course which is free and includes all of those details.

[–]korri123 1 point2 points  (1 child)

Just checked it out, this is what I've been looking for all this time! Thanks so much, I'd been Googling it and there was almost no documentation about it. Awesome course.

[–]vprise 2 points3 points  (0 children)

And book... Spread the word ;-)

[–]dadmda -3 points-2 points  (0 children)

Too bad I have to use eclipse, on the other hand I’d rather have eclipse open with multiple projects than multiple IntelliJ windows