Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop eclipse switch to Debug tab

Tags:

My problem is somewhat like the question here and here, but none of those answer can apply to my situation.

I am running tomcat inside Eclipse, and my project has some quartz job that run by schedule. Those quartz job meets null pointer exception very often (since they must parse documents from an untrusted source) and surely the team who are working with those jobs can't fix them right away.

The result is that Eclipse pop up debug tab every now and then, usually take up focus so that I can't look what happen in console. Moreover, when Eclipse meet the exception, it pop out to take focus out of the program I currently work in (browser, email,...). It is very annoying.

Can I simply skip all the null pointer exceptions (since the fail of the jobs doesn't affect my program anyway) or is there a way to keep the focus on the console tab, and keep Eclipse doesn't complain everytime an exception pop out?

I'm very thankful for any possible solution.

UPDATE: I'm using Eclipse Helios with few plugins.

like image 225
Hoàng Long Avatar asked Nov 09 '11 05:11

Hoàng Long


People also ask

How do I exit debug mode in Eclipse?

Right Click the project and Open Properties. Then Select Run/Debug Setting from there you will find all the launch Configured. Delete all the launch and Run the application.

How do I get out of debug mode?

Accepted Answer To exit debug mode, press Alt+B followed by D. at the Command Prompt to exit debug mode.


2 Answers

Have you looked in Eclipse's settings under Run/Debug? There are two useful options you can change;

  • Activate the workbench when a breakpoint is hit
  • Activate the debug view when a breakpoint is hit

Another obvious option would be to not use debug mode and "run" the application instead (AFAIK, breakpoints will never stop execution when "Running" code instead of "Debugging" it).

like image 113
Bryan Avatar answered Sep 24 '22 00:09

Bryan


Window > Preferences > Run/Debug > Perspectives >

> Open the associated perspective when an application suspsends:

Set to Never, or Prompt (as desired)

enter image description here

like image 44
shak Avatar answered Sep 23 '22 00:09

shak