On 06/05/2026 16:24, Danny Gowin via fpc-pascal wrote:
I need to report a bug in Lazarus running on Fedora.
Work items · FPC Source · GitLab <https://gitlab.com/freepascal.org/fpc/source/-/work_items?sort=created_date&state=opened&first_page_size=20>

Fedora 44, Lazarus version 4.6, FPC Version 3.2.2, Project: Simple Program.

*Program mytestprog01;*
*
*
*Uses crt;*
*
*
*Begin*
*    Writeln('Hello World');*
*    Readln;*
*end.*

When Compile Run is initiated.

1.
    Run With Debugger.


_A terminal Window is NOT initiated._
The program can be Stopped. But the IDE returns no Error.

The compiled program executes correctly when run manually from a terminal.

Question: Lazarus on Fedora, is the IDE making a call to an obsolete terminal program like xterm?

This feature works correctly on the Windows 11, Lazarus version 4.6, FPC Version 3.2.2, Project: Simple Program.


Actually a Lazarus question, not an FPC question.

Currently on Linux, all terminal IO is redirected to
Menu: view > debug windows > console

But, that is a very simple text console without terminal functionality. You will see text, and be able to enter text... nothing else.


On Windows the OS opens a new terminal window for the debugged app. On Linux the caller (here IDE) would need to start a terminal (xterm, gnome-term, ...) and run the app inside => that is not supported currently.

There are a few "workarounds"

1) Tools >Options > debugger backend : there is a setting about PTY
If you have a terminal open, and know its pty, then you can enter this pty in the settings, and all in/output is redirected.

2) (not tested myself)
Run the app in gdbserver inside a terminal, and use the gdb server debugger to connect to it.

_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to