Sublime Forum

Sublime build system problem

#1

Hi, I’m writing a build system for PureBasic on OSX.
The problem is that the debugger output (inside of Sublime) is not done until the compiled program is quit.

Doses anybody has an idea why?

0 Likes

#2

Probably becuase the program is using buffered output. Turn off buffering or flush the buffer after each output.

2 Likes

#3

There is no option to flush the debugger output.
This problem is not happened if I compile inside the terminal (bash).

0 Likes

#4

That’s becuase standard input and standard output are fully buffered, but if they are a terminal device, they are line buffered. When you use the build system you are no longer outputting to a terminal.

Try looking in the API for how to get the handle to stdout or stderr and flush them yourself.

1 Like

#5

You can also try unbuffer or stdbuf:


0 Likes