Re: [Lazarus] Terminal window, workaround
Mattias Gaertner wrote: > On Thu, 11 Dec 2008 09:39:38 +0100 > svaa wrote: > >> Hello: >> >> I've decide to use the this work around. I write to filetext and in a >> terminal I use "tail -f ". It lets me stop in a breakpoint from >> the IDE and watch in the terminal the current value with a writeln. >> It's not the best, but it works for what I need. May be later I will >> learn how to use the gdb from command line. >> >> By the way, I thought gdb was unable to display Pascal variables, but >> if gdb is able to display the value of any variable in Pascal, what's >> the problem of Lazarus's IDE in displaying the value? It uses gdb as >> debugger backend. doesn't it? > > Yes. But not every variable has a simple mapping in the debugging info. > MSEGui does some more tricks to fill some gaps. > The codetools can probably provide enough information to map. > Marc can probably give more details. The current debugger should be able to display all variable values (except those defined with absolute and maybe those in procedures defined within procedures) So please let me know in what situation it fails (if gdb is able to show them) Properties are a different beast. Marc ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Terminal window, workaround
On Thu, 11 Dec 2008 09:39:38 +0100 svaa wrote: > Hello: > > I've decide to use the this work around. I write to filetext and in a > terminal I use "tail -f ". It lets me stop in a breakpoint from > the IDE and watch in the terminal the current value with a writeln. > It's not the best, but it works for what I need. May be later I will > learn how to use the gdb from command line. > > By the way, I thought gdb was unable to display Pascal variables, but > if gdb is able to display the value of any variable in Pascal, what's > the problem of Lazarus's IDE in displaying the value? It uses gdb as > debugger backend. doesn't it? Yes. But not every variable has a simple mapping in the debugging info. MSEGui does some more tricks to fill some gaps. The codetools can probably provide enough information to map. Marc can probably give more details. Mattias ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Terminal window, workaround
Felipe Monteiro de Carvalho escribió: > The IDE shows the values. Set a breakpoint and then move the mouse > over the variable names in the code. It will show you their value at > that point as a tooltip. > > Not always. Bugs #12522 and #12111 At least in Linux. Regards Santiago A. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Terminal window, workaround
The IDE shows the values. Set a breakpoint and then move the mouse over the variable names in the code. It will show you their value at that point as a tooltip. -- Felipe Monteiro de Carvalho ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Terminal window, workaround
Hello: I've decide to use the this work around. I write to filetext and in a terminal I use "tail -f ". It lets me stop in a breakpoint from the IDE and watch in the terminal the current value with a writeln. It's not the best, but it works for what I need. May be later I will learn how to use the gdb from command line. By the way, I thought gdb was unable to display Pascal variables, but if gdb is able to display the value of any variable in Pascal, what's the problem of Lazarus's IDE in displaying the value? It uses gdb as debugger backend. doesn't it? Regards Santiago Amposta around svaa wrote: Hello: I have 0.9.26 on Ubuntu 7.10. I am writing a GUI program, since debugger has problems to check the values of variables, I want to output debug data with "writeln" but I can't get a terminal with if it is not console application. How can I get a to have the GUI program running and a terminal window also? Regards Santiago A. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Terminal window
What happens if you open the application by typing its name in a console window? The console window remains there during execution of the program, and receives some output, though this may not be the output you require. Regards - Chris svaa wrote: > Hello: > > I have 0.9.26 on Ubuntu 7.10. I am writing a GUI program, since debugger > has problems to check the values of variables, I want to output debug > data with "writeln" but I can't get a terminal with if it is not > console application. > > How can I get a to have the GUI program running and a terminal window also? > > Regards > Santiago A. > > ___ > Lazarus mailing list > Lazarus@lazarus.freepascal.org > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus > > ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Terminal window
On Tue, Dec 09, 2008 at 07:24:38PM -0200, Felipe Monteiro de Carvalho wrote: > On Tue, Dec 9, 2008 at 7:07 PM, Tom Verhoeff <[EMAIL PROTECTED]> wrote: > > And for Mac OS, in my experience. (Hence, I find the option name > > misleading.) > > What does it do in Mac OS? > > AFAIK you are wrong. This option sets a flag in the Windows executable > to indicate that a standard I/O terminal should be created. It is > something about the internal working of a windows executable and does > nothing in other platforms. When unchecked, it used to open an xterm, in which output of write/writeln would appear. But this may have been in the GTK version using X11. When I try it now, it gives an error Debugger: Exception while creating process: Executable not found: "xterm" But I have a wrong path somewhere ... Maybe someone else can try as well. Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science PHONE: +31 40 247 41 25| Technische Universiteit Eindhoven FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven http://www.win.tue.nl/~wstomv/ | The Netherlands ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Terminal window
Tom Verhoeff schreef: > On Tue, Dec 09, 2008 at 05:02:38PM +0100, Mattias Gärtner wrote: >> Zitat von Tom Verhoeff <[EMAIL PROTECTED]>: >>> On Tue, Dec 09, 2008 at 04:08:36PM +0100, svaa wrote: How can I get a to have the GUI program running and a terminal window also? >>> In Project > Compiler Options > Linking: uncheck "Win32 gui application" >>> (that Win32 is a legacy name). I believe that checkmark only >>> suppresses the terminal window (but other should be able to shed >>> more light on this). >> This option has no impact on linux - it is only for windows. > > And for Mac OS, in my experience. (Hence, I find the option name misleading.) > What effect does this option has on Mac OS? Vincent ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Terminal window
On Tue, Dec 9, 2008 at 7:07 PM, Tom Verhoeff <[EMAIL PROTECTED]> wrote: > And for Mac OS, in my experience. (Hence, I find the option name misleading.) What does it do in Mac OS? AFAIK you are wrong. This option sets a flag in the Windows executable to indicate that a standard I/O terminal should be created. It is something about the internal working of a windows executable and does nothing in other platforms. -- Felipe Monteiro de Carvalho ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Terminal window
On Tue, Dec 09, 2008 at 05:02:38PM +0100, Mattias Gärtner wrote: > Zitat von Tom Verhoeff <[EMAIL PROTECTED]>: > > On Tue, Dec 09, 2008 at 04:08:36PM +0100, svaa wrote: > > > > > > How can I get a to have the GUI program running and a terminal window > > > also? > > > > In Project > Compiler Options > Linking: uncheck "Win32 gui application" > > (that Win32 is a legacy name). I believe that checkmark only > > suppresses the terminal window (but other should be able to shed > > more light on this). > > This option has no impact on linux - it is only for windows. And for Mac OS, in my experience. (Hence, I find the option name misleading.) My apologies for giving bad advice concering Linux. Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science PHONE: +31 40 247 41 25| Technische Universiteit Eindhoven FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven http://www.win.tue.nl/~wstomv/ | The Netherlands ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Terminal window
Zitat von Tom Verhoeff <[EMAIL PROTECTED]>: > On Tue, Dec 09, 2008 at 04:08:36PM +0100, svaa wrote: > > > > I have 0.9.26 on Ubuntu 7.10. I am writing a GUI program, since debugger > > has problems to check the values of variables, I want to output debug > > data with "writeln" but I can't get a terminal with if it is not > > console application. > > > > How can I get a to have the GUI program running and a terminal window also? > > In Project > Compiler Options > Linking: uncheck "Win32 gui application" > (that Win32 is a legacy name). I believe that checkmark only > suppresses the terminal window (but other should be able to shed > more light on this). This option has no impact on linux - it is only for windows. You have two options: a) View / Debug windows / Debug output This shows the output of your program, but it is not as mighty as a your favorite linux terminal. b) start your favorite terminal and use the gnu debugger directly. See http://wiki.lazarus.freepascal.org/Creating_a_Backtrace_with_GDB#Linux.2FBSD_Users Mattias ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Terminal window
svaa wrote: > Hello: > > I have 0.9.26 on Ubuntu 7.10. I am writing a GUI program, since debugger > has problems to check the values of variables, I want to output debug > data with "writeln" but I can't get a terminal with if it is not > console application. > > How can I get a to have the GUI program running and a terminal window also? > > Project --> Compiler Options --> Linking Tab --> uncheck win32 gui application > Regards > Santiago A. > > ___ > Lazarus mailing list > Lazarus@lazarus.freepascal.org > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus > > ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Terminal window
> I have 0.9.26 on Ubuntu 7.10. I am writing a GUI program, since debugger > has problems to check the values of variables, I want to output debug > data with "writeln" but I can't get a terminal with if it is not > console application. > Did you try DebugLn() from LCLProc unit? This works for me on Suse/KDE Bart ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Terminal window
On Tue, Dec 09, 2008 at 04:08:36PM +0100, svaa wrote: > > I have 0.9.26 on Ubuntu 7.10. I am writing a GUI program, since debugger > has problems to check the values of variables, I want to output debug > data with "writeln" but I can't get a terminal with if it is not > console application. > > How can I get a to have the GUI program running and a terminal window also? In Project > Compiler Options > Linking: uncheck "Win32 gui application" (that Win32 is a legacy name). I believe that checkmark only suppresses the terminal window (but other should be able to shed more light on this). Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science PHONE: +31 40 247 41 25| Technische Universiteit Eindhoven FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven http://www.win.tue.nl/~wstomv/ | The Netherlands ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Terminal window
Hello: I have 0.9.26 on Ubuntu 7.10. I am writing a GUI program, since debugger has problems to check the values of variables, I want to output debug data with "writeln" but I can't get a terminal with if it is not console application. How can I get a to have the GUI program running and a terminal window also? Regards Santiago A. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus