We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a9b6f7 commit 0f7ef71Copy full SHA for 0f7ef71
1 file changed
PythonDebugger/PythonDebugger.cpp
@@ -252,10 +252,11 @@ void PythonDebugger::OnTimer(wxTimerEvent& event)
252
{
253
while(m_pp->IsInputAvailable())
254
255
- if(!m_istream->Eof())
256
- m_outbuf+=m_istream->GetC();
257
- else
258
- break;
+ int c;
+ if (m_istream->CanRead())
+ c = m_istream->GetC();
+ if (m_istream->LastRead()>0)
259
+ m_outbuf += c;
260
}
261
//TODO: Program could hang if debug output is incorrectly parsed
262
m_outdebugbuf=m_outbuf;
0 commit comments