Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-03

Terminal window while debugging

6 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Darius Blaszyk

On Linux I don't get the terminal to show when debugging a command line application. How can I instruct the IDE to display the terminal? There is the console window, but I prefer to see the terminal instead. On windows this seems to be handled just fine. I'm using 1.6.4

Regards, Darius

Reply by email

Unknown author
to Darius Blaszyk
Darius Blaszyk wrote
On Linux I don't get the terminal to show when debugging a command line application. How can I instruct the IDE to display the terminal? There is the console window, but I prefer to see the terminal instead. On windows this seems to be handled just fine. I'm using 1.6.4

maybe i'm misunderstanding something but on linux, the console is the terminal... isn't it? it seems that way over here...

eg: in GUI i open a terminal, konsole, and from there run text and GUI programs alike... if i CTRL-ALT-F1, i'm at the base console/terminal i can run text stuffs... i haven't tried GUI stuff from the base terminals ALT-F1 thru ALT-F6... don't know if they would show up on ALT-F7 or not...

NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list* unless private contact is specifically requested and granted.

Reply by email

Sven Barth

Am 05.03.2017 11:58 schrieb "Darius Blaszyk via Lazarus" <

: On Linux I don't get the terminal to show when debugging a command line

application. How can I instruct the IDE to display the terminal? There is the console window, but I prefer to see the terminal instead. On windows this seems to be handled just fine. I'm using 1.6.4

Because on Windows the operating system automatically provides a console if the application is a console one. That is not the case on most other systems however.
If you want a terminal window on Linux you need to enable it in the project settings (don't remember the correct name right now, but the default setting AFAIK is that it's disabled and using "xterm", you'll need to adjust that for your system).

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170305/7ea5c7fe/attachment.html>

Reply by email

Unknown author
to Sven Barth
Sven Barth wrote
If you want a terminal window on Linux you need to enable it in the project settings (don't remember the correct name right now, but the default setting AFAIK is that it's disabled and using "xterm", you'll need to adjust that for your system).

ahhh... i missed that part... mainly because i generally run everything from the command line ;)

NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list* unless private contact is specifically requested and granted.

Reply by email

Darius Blaszyk
to Sven Barth: Am 05.03.2017 11:58 schrieb "Darius Blaszyk via Lazarus" < application. How can I…
> On Linux I don't get the terminal to show when debugging a command > line application. How can I instruct the IDE to display the terminal? > There is the console window, but I prefer to see the terminal instead. > On windows this seems to be handled just fine. I'm using 1.6.4

With "console window" I was referring to the "terminal output" debug window.

Show quoted text 7 lines
Because on Windows the operating system automatically provides a console if the application is a console one. That is not the case on most other systems however. If you want a terminal window on Linux you need to enable it in the project settings (don't remember the correct name right now, but the default setting AFAIK is that it's disabled and using "xterm", you'll need to adjust that for your system).

What setting would that be? Are you possibly referring to the "run parameters" dialog and the "launching application" setting? Activating that gives the following error:

"/usr/bin/gnome-terminal": not in executable format: File format not recognized

Switching to xterm does not help. Then I get:

The GDB command:
"info address main"
returned the error:
",msg="No symbol \"main\" in current context.""

Regards, Darius

Reply by email

Martin Frb
to Darius Blaszyk
Darius Blaszyk wrote 8 lines
>> On Linux I don't get the terminal to show when debugging a command >> line application. How can I instruct the IDE to display the >> terminal? There is the console window, but I prefer to see the >> terminal instead. On windows this seems to be handled just fine. I'm >> using 1.6.4 With "console window" I was referring to the "terminal output" debug window.

The best way is to provide patches, and make the "terminal output" window more comfortable / add functions a terminal would have....

Show quoted text 7 lines
What setting would that be? Are you possibly referring to the "run parameters" dialog and the "launching application" setting? Activating that gives the following error: "/usr/bin/gnome-terminal": not in executable format: File format not recognized

I don't think you can start it directly with F9 inside any terminal app.

You can of course run it in a terminal (outside the IDE), and then attach to it (assuming it waits somewhere so you have time)

An other options is
http://wiki.lazarus.freepascal.org/Debugger_Console_App#Redirect_input_and_output_to_a_pty_.28terminal.29 But it is not very convenient either

Reply by email