With the IntelliJ Idea, when setting a breakpoint that doesn't hit frequently (or not at all), I leave my computer. I'll return ~every 10 minutes to check if the breakpoint has been reached. This process would make use of my time more efficient if I could hear when the breakpoint has been reached. Is this possible?
EDIT:
1) The following works as code, but I need to execute an .mp4
file instead of .app
. See the second block of code for that attempt, which doesn't work.
2) Though the code works for .app
, how would I set the breakpoint to execute that code when it is reached?
This works as code:
try {
Runtime.getRuntime().exec("/usr/bin/open -a iTunes.app");
} catch (IOException e) {
e.printStackTrace();
}
This doesn't
try {
Runtime.getRuntime().exec("MacintoshHD/Users/myusername/Music/iTunes/iTunes Media/Tones -a 01 Zelda Gets Item Alert Tone.m4a");
} catch (IOException e) {
e.printStackTrace();
}
btw, I did try putting quotes around the path items that had spaces. That didn't work either.