* * *

Author Topic: How to modify the StringList and ability to debug it?  (Read 935 times)

edgarrod71

  • New member
  • *
  • Posts: 15
How to modify the StringList and ability to debug it?
« on: August 18, 2017, 01:15:26 am »
I wish somebody could give me instructions precise to modify TStringList source code from the base unit and other LCL and instructions to debug them.  Thank you.
« Last Edit: August 18, 2017, 01:39:56 am by edgarrod71 »

howardpc

  • Hero Member
  • *****
  • Posts: 2389
Re: How to modify the StringList and ability to debug it?
« Reply #1 on: August 18, 2017, 01:48:25 am »
What do you want to do for which you find TStringlist has shortcomings?

edgarrod71

  • New member
  • *
  • Posts: 15
Re: How to modify the StringList and ability to debug it?
« Reply #2 on: August 18, 2017, 03:04:38 am »
I want to modify and recompile CLASSESH.INC how can I do it?

Leledumbo

  • Hero Member
  • *****
  • Posts: 7717
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: How to modify the StringList and ability to debug it?
« Reply #3 on: August 18, 2017, 05:33:23 am »
Just modify the corresponding file and do `make all install=/your/fpc/base/directory` in rtl folder.

edgarrod71

  • New member
  • *
  • Posts: 15
Re: How to modify the StringList and ability to debug it?
« Reply #4 on: August 18, 2017, 11:40:54 am »
Is it a step by step instructions for dummies?

Leledumbo

  • Hero Member
  • *****
  • Posts: 7717
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: How to modify the StringList and ability to debug it?
« Reply #5 on: August 19, 2017, 04:20:07 pm »
Is it a step by step instructions for dummies?
I can't say how dummies-friendly it is, but it's the primary source when talking about build system of FPC itself: http://www.stack.nl/~marcov/buildfaq.pdf

BeniBela

  • Hero Member
  • *****
  • Posts: 593
    • homepage
Re: How to modify the StringList and ability to debug it?
« Reply #6 on: August 19, 2017, 05:13:25 pm »
You can just derive a class from TStringList and override the methods you want to change.


Thaddy

  • Hero Member
  • *****
  • Posts: 4617
Re: How to modify the StringList and ability to debug it?
« Reply #7 on: August 19, 2017, 05:33:59 pm »
You can just derive a class from TStringList and override the methods you want to change.

That's what I would do too... Tstringlist and Tstrings are heavily used and you run the risk of breaking all of the places where it is used.
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus