With IntelliJ IDEA, when setting a breakpoint that isn't hit frequently (or not at all), I leave my computer. I'll return every 10 minutes or so to check if the breakpoint has been reached. It would be more efficient if I could hear when the breakpoint is reached. Is this possible?
The following code works, but I need to execute an
.mp4
file instead of.app
. See the second block of code for that attempt, which doesn't work.Though the code works for
.app
, how would I set the breakpoint to execute that code when it is reached?
This works:
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();
}
By the way, I did try putting quotes around the path items that had spaces. That didn't work either.