Recent

Author Topic: Debugging in FCL  (Read 7648 times)

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1946
Debugging in FCL
« on: July 30, 2006, 09:02:32 pm »
How can i set breakpoints in and step through FCL code?
I've tried all sorts of things like adding additional paths in the debugger options, but the debugger doesn't find the file.

On the console, it says for example:

Code: [Select]
TManagedBreakPoints.NotifyAdd A /usr/share/fpcsrc/packages/base/netdb/netdb.pp 556
[Debugger] Log output: &"No source file named netdb.pp.\n"
TGDBMIDebugger.ProcessResult Error: ,msg="No source file named netdb.pp."


What can I do?

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2680
RE: Debugging in FCL
« Reply #1 on: July 31, 2006, 10:53:36 am »
You need to build a FCL with debugcode.

You can try by doing a make OPT=-g in the FCL dir and then adding the units dit to the comiler path. (they must be before the regular path to the fcl units
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018