Recent

Author Topic: How to tacking into some system unit  (Read 687 times)

@Func

  • New Member
  • *
  • Posts: 36
How to tacking into some system unit
« on: January 06, 2020, 09:52:50 am »
I want to track into some system unit ,for example classsh.inc etc . Does there has some configuration can let me do this .  use key F7 OR F8, thanks a lot .

balazsszekely

  • Guest
Re: How to tacking into some system unit
« Reply #1 on: January 06, 2020, 10:08:17 am »
I want to track into some system unit ,for example classsh.inc etc . Does there has some configuration can let me do this .  use key F7 OR F8, thanks a lot .

You have to rebuild FPC with "-g -gl -O-", it's not a trivial task though. The easiest solution is to install a second instance of lazarus with fpcdeluxe(it won't interfere with your current installation). Before install don't forget to change the options in setup(see attached screenshot).

@Func

  • New Member
  • *
  • Posts: 36
Re: How to tacking into some system unit
« Reply #2 on: January 06, 2020, 10:14:06 am »
I will try it . thank a lot !

Bart

  • Hero Member
  • *****
  • Posts: 5275
    • Bart en Mariska's Webstek
Re: How to tacking into some system unit
« Reply #3 on: January 06, 2020, 10:17:11 am »
Well, if you have the sources of fpc (as you should have) it's not that hard.
Code: [Select]
make clean OPT="-g -gl -O-"
make install

It will install the newly generated fpc in the defualt location (c:\pp in Windows, no idea what it is on *.nix, where you also must have root privileges).
And the new fpc must have a fpc.cfg as well.

In the folder where the binary is (fpc.exe in windows, fpc in *.nix) do:
Code: [Select]
fpcmkcfg -o fpc.cfg

Bart

@Func

  • New Member
  • *
  • Posts: 36
Re: How to tacking into some system unit
« Reply #4 on: January 06, 2020, 01:07:14 pm »
Well, if you have the sources of fpc (as you should have) it's not that hard.
Code: [Select]
make clean OPT="-g -gl -O-"
make install

It will install the newly generated fpc in the defualt location (c:\pp in Windows, no idea what it is on *.nix, where you also must have root privileges).
And the new fpc must have a fpc.cfg as well.

In the folder where the binary is (fpc.exe in windows, fpc in *.nix) do:
Code: [Select]
fpcmkcfg -o fpc.cfg

Bart

Thanks Bart i will try it later!

 

TinyPortal © 2005-2018