Skip to content

Commit 6dd1805

Browse files
committed
IO: don't suppress IO in debug mode
1 parent 9eca6e0 commit 6dd1805

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/common/io/io_unix.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,11 @@ const char* ffGetTerminalResponse(const char* request, int nParams, const char*
256256

257257
bool ffSuppressIO(bool suppress)
258258
{
259+
#ifndef NDEBUG
260+
if (instance.config.display.debugMode)
261+
return false;
262+
#endif
263+
259264
static bool init = false;
260265
static int origOut = -1;
261266
static int origErr = -1;

src/common/io/io_windows.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ bool ffPathExpandEnv(const char* in, FFstrbuf* out)
159159

160160
bool ffSuppressIO(bool suppress)
161161
{
162+
#ifndef NDEBUG
163+
if (instance.config.display.debugMode)
164+
return false;
165+
#endif
166+
162167
static bool init = false;
163168
static HANDLE hOrigOut = INVALID_HANDLE_VALUE;
164169
static HANDLE hOrigErr = INVALID_HANDLE_VALUE;

0 commit comments

Comments
 (0)