Debugging via console

Started by garry23, December 28, 2019, 08:14:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

garry23

Does anyone know if it's possible to scroll the console.

I'm trying to debug some Lua and the important stuff is at the beginning and the text feedback in the console is verbose and the stuff I need to read gets lost/hidden.

Cheers

Garry

Walter Schulz

Smartphone -> Video -> Playback. Done.

garry23

Another good reason to get a smart phone  ;)

Yup, I don't have one.

But I do have a means to video the screen.  :)

Cheers

Garry

Audionut

Can you dump the console to a text file with LUA.

garry23

@Audionut

I looked at that, but the only console function is to write a specific piece of text.

I couldn't work out how to direct the console to a file.

Thanks for your feedback, I'm sure I'll cope.

a1ex

If all the messages come from Lua, you can save them to a file. For example, api_test.lua does just that.

Otherwise, this functionality needs to be implemented somehow in the ML core. For my needs, I define CONSOLE_DEBUG in console.c; it works, but...

This functionality should be available in the Debug menu, alongside with some kind of buffering. Integration with g3gg0's trace module could make sense, but that won't catch early startup messages.