Flush console debugger redirection to disk

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
MrMat
Enthusiast
Enthusiast
Posts: 762
Joined: Sun Sep 05, 2004 6:27 am
Location: England

Flush console debugger redirection to disk

Post by MrMat »

Hi,

When using the redirect and file commands in the console debugger, e.g:
redirect e:\log.txt
file report
the output is only partially flushed to disk. Exiting the debugger flushes it completely but it would be more useful if it was written to disk as soon as the command is completed so that the output can be read immediately.

Also, in the standalone debugger, it would be very useful if in the Scintilla gadget you set the vertical unwanted zone with Sci_SetYCaretPolicy so that the document scrolls before the caret reaches the last line. Then, when stepping through the code, the next few lines will always be visible without scrolling.

Cheers!
Mat
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Post by AND51 »

I'm not completely sure if this is what you mean?

FlushBuffersSize() - set this to 0 to disable file caching
FlushFileBuffers() - execute this command to flush once
PB 4.30

Code: Select all

onErrorGoto(?Fred)
MrMat
Enthusiast
Enthusiast
Posts: 762
Joined: Sun Sep 05, 2004 6:27 am
Location: England

Post by MrMat »

It is inside the console debugger (not in my code) so there is no chance to do that but thank you for the suggestion :)
Mat
Post Reply