My program reads standart input to EOF and puts it into string like this
ostringstream ss;
ss << cin.rdbuf();
m_Input = ss.str();
It works fine, but when I try to debug this program in CLion, I type some string into the console and then press CTRL + D. But doing this makes the debugging end with SIGHUP on line 2 of this fragment. Is there a way how to avoid this and let the debugging continue? Or is there other way how to give the debugger input with EOF?