[Gambas-user] Debugging Gambas

T Lee Davidson t.lee.davidson at gmail.com
Thu Jan 10 23:17:11 CET 2019


I don't recall exactly what your project is. But, with "Use terminal emulator" and "Redirect standard error output" enabled,
Print displays in the terminal and Debug displays in the IDE console. With redirection disabled, both display in the terminal.


___
Lee


On 1/10/19 2:23 PM, KKing wrote:
> <<
>> What is the "Redirect Standard error output" option meant for and how to
>> use?
>>
> I would advise to enable this. You can then "print debug" your program
> with the Debug or Error statements. Those send strings to stderr, which
> is redirected as Fabien said. Otherwise these messages clutter up your
> ncurs-ified terminal which make them unreadable and can cause visual
> glitches. [ That is because ncurses, true to its name, reduces the amount
> of changes sent to the terminal as much as it can. It assumes that you
> do not print to the terminal but through ncurses functions, so that it
> has an accurate idea of what is on the screen. ]
>>>
> I'm probably missing something... if I enable this I don't see any different behaviour. Should I be looking at a particular log
> generated somewhere or do I need to add (potentially a lot) of debug statements?


More information about the User mailing list