If you're doing something like play in scala you usually need the program running in the Intellij context, but it can also hook up to the debugging port of a JVM or to the PHP interpreter running inside of a VM.
IntelliJ is a pretty complete suite of a tools, a pleasure to use (has VIM mode too :P)