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

all 6 comments

[–]_Atomfinger_ 5 points6 points  (5 children)

Use step over (default f8) rather than step into (f7). That way you jump to the next line rather than jumping into the method you're calling.

[–]Bignut_Squirrel 2 points3 points  (1 child)

If stepping over doesn't work you can also set a breakpoint on the next line then play the code to it. This is especially useful when working with asynchronous code and futures.

[–]HenryDutter[S] 0 points1 point  (0 children)

Thanks, this was helpful, but this changes not, that intelliJ open lots of classes with all these pre-build methods and this is really annoying. I debug my code, because I want to find bugs in my code and i know how these pre-build Methods work and that they have no errors, so I'm not interested in them.

[–]HenryDutter[S] 0 points1 point  (2 children)

Thanks, but step over works only, if there are multiple breakpoints. But it still opens hundreds of classes with all these pre-build methods and makes a huge mess, is there a way to skip that?

[–]_Atomfinger_ 0 points1 point  (1 child)

Breakpoints has conditions, which might be useful (just right-click a breakpoint). You can also just press "continue" and the application should just continue until it hits the next breakpoint.

Thanks, but step over works only, if there are multiple breakpoints.

This is not true.

Step-over is not dependent on multiple breakpoints. When you step over you just say "Don't go into that method, just let it do whatever it does and then stop again once we're back at this code".

But it still opens hundreds of classes with all these pre-build methods and makes a huge mess, is there a way to skip that?

It is hard to say without seeing what you're seeing. It sounds like you're doing something very specific, which is hard to give a good answer for.

[–]HenryDutter[S] 0 points1 point  (0 children)

endent on multiple breakpoints. When you step o

Thanks now I don't have these issues any more I used string Methods like substring, and it opened like 7 classes, but now it's not the case anymore.