pass standard input stream to program
I have a program that reads input from a file via the standard input stream, as in
java my-application < input-file
My program hangs inside of intellij when it tries to read from System.in. I've tried the following setting in the run configuration dialog, program parameters:
"< /path-to-input-file/input-file"
What am I doing wrong ?
Best,
-Ben
请先登录再写评论。
fyi, per Serge Baranov at JetBrains, setting up remote debugging did the trick.
cheers,
-Ben