Recent

Author Topic: New debugger for Mac based on lldb (Call for testers)  (Read 13079 times)

Igor Kokarev

  • Jr. Member
  • **
  • Posts: 67
Re: New debugger for Mac based on lldb (Call for testers)
« Reply #75 on: December 24, 2018, 01:06:06 pm »
I installed new Lazarus 2.0 RC3 on macOS Mojave.

New LLDB debugger is available by default. It works fine on first glance.

Also I can see values of WideString under debugger.

Thanks, Martin!

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 5030
    • wiki
Re: New debugger for Mac based on lldb (Call for testers)
« Reply #76 on: December 24, 2018, 01:32:20 pm »
I added "known issues" to my initial post on page 1.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3540
Re: New debugger for Mac based on lldb (Call for testers)
« Reply #77 on: January 02, 2019, 09:48:34 am »
Which command will build an IDE from zero with this lldb installed? Because I was using "make bigide" and it wasn't available, but maybe my revision was too old?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 5030
    • wiki
Re: New debugger for Mac based on lldb (Call for testers)
« Reply #78 on: January 02, 2019, 12:49:30 pm »
Which command will build an IDE from zero with this lldb installed? Because I was using "make bigide" and it wasn't available, but maybe my revision was too old?

Afaik it should be part of bigide (but I have to test). But only in fixes 2.0 (probably past RC2) and in trunk (2.1).

Not a direct answer to your quesition: You can always install the package LazDebuggerFpLldb

Also once build bigide, check that the package is installed, to make sure the error (of its absence) is not something else/unexpected.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3540
Re: New debugger for Mac based on lldb (Call for testers)
« Reply #79 on: January 03, 2019, 04:45:05 pm »
Indeed, it seams to be available in "make bigide LCL_PLATFORM=cocoa"! I must have been using too old revisions. Thanks for the great work by the way!

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 5030
    • wiki
Re: New debugger for Mac based on lldb (Call for testers)
« Reply #80 on: January 05, 2019, 06:05:52 pm »
I added a testcase for "lldb with fpdebug".

Currently it only focuses on watch evaluations. Stepping, breakpoints and the like are not yet tested.

If you are
- on trunk, at/past revision 60012
- on fixes2.0, at/past revision 60013
then you can run it. (and it be nice if you do, please)

The test is in  components\lazdebuggers\lazdebuggerfplldb\test
TestFpLldb.lpi

Before you can run it you need
* CONFIG
copy and edit
  fpclist.txt.sample => fpclist.txt
  lldblist.txt.sample => lldblist.txt

Uncomment what you need. Edit the path to your fpc/lldb.
-You can ignore the version info.
-You can add/use one off (or leave away, which means both)
  bits=32
  bits=64
  bits=32,64
-For symbols=gw,gwset,gw3,gw4 you can use any flag that fpc recognizes for dwarf

-You can duplicate a section and extend it with (to pass extra param to fpc)
  opts=-O- -godwarfcpp
godwarfcpp is not fully supported

* DIRECTORIES
you may have to rename the folder testapps to lowercase
After you run tests, you should periodically delete any files in it, except for the "lib" folder, which must exist (as an empty folder)

You may create a "logs" folder.

If a file dialog opens, when you run the test, then it did not find the testapps/lib folder.

----------------------
Currently there is a known issue, with global variables from other units (other than the current paused line).

This leads to 61 fails in the "Scope" test. The test will list the number of fails at the end.

----------------------
Running the test may take some time. Between 10 and 30 minutes, depending on your system. Run it from a console, to see it is not stack (it prints dots to the console, from time to time)
« Last Edit: January 05, 2019, 06:24:20 pm by Martin_fr »