Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to sound an audio alert when a breakpoint is hit in Eclipse?

Tags:

eclipse

I like to have Eclipse debugging in the background while I do other things, but I can't find a way to sound an audio alert or focus to Eclipse when a breakpoint is hit (I'm using OSX if that matters).

Has anyone found a way to do this?

like image 516
Jason Kolb Avatar asked Nov 05 '22 09:11

Jason Kolb


1 Answers

I think that the feature is actually not supported by Eclipse, but maybe you can achieve your goal with a workaround on a conditional breakpoint.

You can try setting the breakpoint as conditional and putting your code to play the audio clip inside it, something like this :

....
InputStream in = new FileInputStream(Filename);
AudioStream as = new AudioStream(in);         
AudioPlayer.player.start(as);

return true;

Should work...

like image 143
aleroot Avatar answered Nov 09 '22 13:11

aleroot