* * *

Author Topic: Browser info compiler option  (Read 616 times)

dubst3pp4

  • New member
  • *
  • Posts: 12
  • JavaScript, Smalltalk, ObjectPascal
Browser info compiler option
« on: July 24, 2017, 09:23:01 am »
Hello, I've just discovered the -b and -bl compiler options to generate browser information.
It looks like that this information is compiled into the binary. Is this an fp-ide only format? How could I use this browser information for other texteditors (my use case is Vim)?

Thaddy

  • Hero Member
  • *****
  • Posts: 4629
Re: Browser info compiler option
« Reply #1 on: July 24, 2017, 12:20:53 pm »
Hello, I've just discovered the -b and -bl compiler options to generate browser information.
It looks like that this information is compiled into the binary. Is this an fp-ide only format? How could I use this browser information for other texteditors (my use case is Vim)?
-Xg        Create debuginfo in a separate file and add a debuglink section to executable


You really should look at the documentation.

(Although I really, really, really do not understand WHY that is not te default: nobody has a good explanation for that, yet..)
« Last Edit: July 24, 2017, 12:27:09 pm by Thaddy »
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

dubst3pp4

  • New member
  • *
  • Posts: 12
  • JavaScript, Smalltalk, ObjectPascal
Re: Browser info compiler option
« Reply #2 on: July 25, 2017, 10:06:44 am »
Thanks Thaddy! I really read the documentation and I think that the FreePascal team did a really good job here! But it is hard to interpret the difference and meaning of:

-b     Generate browser info
-Xg        Create debuginfo in a separate file and add a debuglink section to executable

So I still don't know:

1. in what format is the browser info exactly?
2. is it usable from within fp-ide only or is it usable from other editors, too?
3. how does the debuginfo reflect the structure of my pascal file?

I've also searched the Wiki but found no hints. My goal is to use fpc for Vim plugins like YouCompleteMe or Syntastic, to set up a much better Pascal environment in Vim as it is by default.


Thaddy

  • Hero Member
  • *****
  • Posts: 4629
Re: Browser info compiler option
« Reply #3 on: July 25, 2017, 10:22:10 am »
1. The default is dwarfv2 (I tnink)
2. That info is readable by GDB for which you can setup most editors as an external tool
3. It does not directly. It relies on your debug settings and the sections.

If you do not want the debug info included during debugging, you make your life a bit more difficult. This also goes for e.g. GNU C(++). Or Delphi...
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

SymbolicFrank

  • Sr. Member
  • ****
  • Posts: 299
Re: Browser info compiler option
« Reply #4 on: July 25, 2017, 12:17:27 pm »
(Although I really, really, really do not understand WHY that is not te default: nobody has a good explanation for that, yet..)
Totally agree. Especially because the installer tells you to do that yourself ASAP. And it's a project setting, so you have to reset it every time.

 

Recent

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