agathazeren / cuneiforbits

𒆩𒀩𒂷𒂷𒂷𒀖
1 stars 1 forks source link

Create a debug output system #15

Closed agathazeren closed 4 years ago

agathazeren commented 4 years ago

Some way to log this for debugging and view in real time from a second terminal.

yvnat commented 4 years ago

A very easy (but also very messy) of doing this would be to have a "debug log" string, and reprint it below (or above) everything else whenever the screen is cleared and updated. Otherwise, I don't know anything about handling multiple terminals except for the fact that it can be very difficult on windows.

agathazeren commented 4 years ago

Yes, that is one option. In terms of multiple terminals it wouldn't be hard, except that you'd have to do IPC, and write a totally separate debugger program. But then you could also have a more sophisticated debugger. unless maybe we hijack some of the game controls. We could do that in main, which would be relatively minimally invasive.

agathazeren commented 4 years ago

Think that I will implement that idea.