tracing values in console

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
User avatar
Dev
DCEmu Fast Newbie
DCEmu Fast Newbie
Posts: 19
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Mon Dec 21, 2015 7:35 am
Location: Cyberspace
Has thanked: 0
Been thanked: 0

tracing values in console

Post by Dev »

I finally got a chance to put together a proper development environment: have a BBA and a crossover cable to push binaries to the DC via DC-IP, built the latest version of KOS on Linux Mint.

I can compile and run code on the DC but can't find an easy way to dump let's say a variable into the system console. DC-IP doesn't seem to pass back values like standard console output so printf doesn't do anything. How do I trace the text output of a KGL application I'm running?
TapamN
DC Developer
DC Developer
Posts: 104
Joined: Sun Oct 04, 2009 11:13 am
Has thanked: 2 times
Been thanked: 89 times

Re: tracing values in console

Post by TapamN »

Try fflushing stdout. Printf through DC-Load-IP definitely does work, that's how I do all my debugging.
User avatar
Dev
DCEmu Fast Newbie
DCEmu Fast Newbie
Posts: 19
Joined: Mon Dec 21, 2015 7:35 am
Location: Cyberspace
Has thanked: 0
Been thanked: 0

Re: tracing values in console

Post by Dev »

It's printing now, thanks.
Post Reply