Sign in Join

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

Mailing lists / lazarus / 2011-02

Debugging fpc sources

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Leonardo M. Ramé

Hi, I'm trying to use THTMLReader/THTMLDocument to parse an HTML file. As I can't find info on how to use them, I'm trying to step by step debug to figure out how this stuff works, but those files are from FPC sources, and the debugger can't step into their methods.

Does anyone knows how can I debug FPC packages?.

Reply by email

waldo kitty
to Leonardo M. Ramé
Leonardo M. Ram? wrote 6 lines
Hi, I'm trying to use THTMLReader/THTMLDocument to parse an HTML file. As I can't find info on how to use them, I'm trying to step by step debug to figure out how this stuff works, but those files are from FPC sources, and the debugger can't step into their methods. Does anyone knows how can I debug FPC packages?.

unless i'm mistaken, you have to (re)compile FPC with all the debugging info you want/need...

Reply by email

Graeme Geldenhuys
to waldo kitty

Op 2011-02-24 21:49, waldo kitty het geskryf:

> Does anyone knows how can I debug FPC packages?. unless i'm mistaken, you have to (re)compile FPC with all the debugging info you want/need...

No, I don't think so. Those mentioned units are part of FCL, so only the FCL (or even only the related package in FCL) would need to be recompiled with DEBUG info enabled. No need to recompile the whole FPC.

To enable debug information you need to pass the -dDEBUG to the make command. eg:

cd <fpc-src>/packages/fcl-xml
make clean
make OPT=-dDEBUG
make install

Regards,
- Graeme -

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

Reply by email