Debugging in Eclipse: How-to "Step-into only if source available" ?

B

Bernd Oninger

When I debug a java source with Eclipse I press occasionally F5 multiple times to get to a certain position.
Sometimes this is a problem when I come to a System.out.println or File() or other built-in java class.
In this case Eclipse searches for the source which is not available.

What I am searching now is a setting/option which I can switch on with the meaning:

"Step-into if source is available otherwise step-over and don't bother me with unavailable source messages"

How do I do this ?

Bernd
 
O

Oliver Wong

Bernd Oninger said:
When I debug a java source with Eclipse I press occasionally F5 multiple
times to get to a certain position.
Sometimes this is a problem when I come to a System.out.println or File()
or other built-in java class.
In this case Eclipse searches for the source which is not available.

What I am searching now is a setting/option which I can switch on with the
meaning:

"Step-into if source is available otherwise step-over and don't bother me
with unavailable source messages"

How do I do this ?

I don't know of any such feature. However, there is a "step out of"
button which allows you to skip everything until the first statement that
lies in the parent of the method you're currently in. So if you accidentally
step into System.out.println, for example, you can step out of it to return
back to "normal" source code.

- Oliver
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top