While debugging and keep pressing F5, if the source code does not exist, eclipse will open a new window declaring that the source was not found.
How can I make eclipse to only try to step in the code (while I am pressing F5 all the time) if the source code exist and if it does not exist, it would just automatically step over it instead of this “Source not found page”. Is this possible?
The best you can do is to use Step Filters. Step filters prevent the debugger from suspending in specified classes and packages when stepping into code. Step filters are established with the Java > Debug > Step Filtering preference page.
=> i.e. you need to manually exclude types or packages for which you do not have source.
A quick way to keep adding step filters as you go along – in the Debug view, the selected stack frame’s package or declaring type can be quickly added to the list of filters by selecting Filter Type or Filter Package from the stack frame’s context menu.