Forum > Packages and Libraries

how to debug package?

(1/2) > >>

powerpcer:
i had change IDE to DEBUG MODE, and rebuild IDE, but still cannot set break point on package.

balazsszekely:

--- Quote from: powerpcer on January 03, 2023, 08:39:34 am ---i had change IDE to DEBUG MODE, and rebuild IDE, but still cannot set break point on package.

--- End quote ---
1. Go to Package->Options->Custom Options
2. Add  $(IDEBuildOptions) to the Custom Options memo

Martin_fr:
Or just open the option dialog for the package in question, and under debugging enable "debug info" and set it to one of the Dwarf values (depending on what debugger you use).

If by package you refer to the packages that come with fpc, then you need to build your own fpc from scratch.

powerpcer:
i am debugging the fcl-db, the dbf.pas. it belongs to dbflaz.lpk
@Martin_fr  i check dbflaz.lpk, all debug info was already there.
@GetMem  i check $(IDEBuildOptions) on Custom Options already.
but debugging not work

iret:

--- Quote ---i am debugging the fcl-db, the dbf.pas. it belongs to dbflaz.lpk
--- End quote ---

I guess you can simply do that like this:


* Remove the dbflaz dependency from your project
* Add the path to tdbf files to the compiler path
* recompile
Concerning TDbf in general:

* The version of TDbf shipping with FPC has more bugs than the version from Sourceforge.
* Specially if you have trouble with index files I strongly recommend to try this one: https://forum.lazarus.freepascal.org/index.php/topic,60227.msg458996.html#msg458996
* If you have an existing dbf  file with "integer" field (DBase type "I") you should also take a look at my patch https://sourceforge.net/p/tdbf/bugs/109/
* One drawback of the sourceforge version: The licence is LGPL without linking exception






Navigation

[0] Message Index

[#] Next page

Go to full version