This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Execute script inside Kdevelop doesn't output prints.

Tags: None
(comma "," separated)
vincentg
Registered Member
Posts
10
Karma
0
I'm using KDevelop for scripting Python and Love2d (Lua) and everything I want to print in my scripts while the script is running in printed only when the application finish. Is it possible to enable real time output?
Thanks!
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
Hi,

you can call sys.stdout.flush() to flush output and make it immediately visible. To be honest though, I'm not sure what component actually does the buffering which makes this necessary in kdevelop, but not on console ...

Best,
Sven


I'm working on the KDevelop IDE.
vincentg
Registered Member
Posts
10
Karma
0
Thanks for the hint. This is also working in lua with io.flush().


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]