On 2016-04-29 06:41, Martin Schreiber wrote:
> Is 'Project'-'Options'-'Debugger'-'Stop on Excep.' activated?

Yes.

> gdb can not follow the stack. First step is to compile *all* source including 
> FPC RTL and FCL with debuginfo in order to help gdb to find the stack 
> pointers.

Ah, so that explains the missing stacktrace. I always compile all the
frameworks/components I use with debug information. But I omitted the
RTL and FCL code. I guess that is also the reason why Delphi shipts with
debug versions of the VCL. :)

> I use this script for compiling:

Thanks, I'll apply that to my environment.


Incidently, I found the bug last night. I forgot to set a compiler
define that controls how tiOPF stores Boolean values in a database. By
default tiOPF uses a Char(1) (values 'F' or 'T'), but I prefer and
always use a ShortInt (values 0 or 1) in my database schema.

> In my experience the FPC-gdb combination is more robust with STABS than DWARF 
> but on 64 bit STABS is not available.

I heard that too, but as you noted, only DWARF is available for 64-bit
platforms. In recent days I've had renewed interest in my Object Pascal
based debugger for FPC. About a week ago I started working on that again
(first time in 2 years :-/ ).


> When you have a RTL with debuginfo and there still is no usable stack 
> information try to set breakpoints everywhere where an EVariantError is 
> raised.

I know many IDE's (not just for use with FPC) include things like CPU
Register and Assembler windows. So other than looking impressive, how
useful are those windows really? Do they actually tell you anything that
can help with debugging? Or are they only useful when you optimised say
your Object Pascal code with some ASM code blocks.


Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to