Recent

Author Topic: [Solved] Debugger on FreeBSD  (Read 2932 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
[Solved] Debugger on FreeBSD
« on: November 03, 2021, 04:34:26 pm »
Martin, I cannot use 'gdb' default debugger on freebsd, always got error on app run (the correct path to 'gdb' was set!). So I installed  2 IDE packages - 'fpdebug' and 'lazdebuggerfp'. Then I made the new debugger IDE profile and set it to use fpdebug. Then I got error msgbox (forgot the message text) on running app with debug! No success!

(I recompiled the IDE)
« Last Edit: November 03, 2021, 07:54:18 pm by Alextp »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9754
  • Debugger - SynEdit - and more
    • wiki
Re: fpDebug on FreeBSD x64 12.2
« Reply #1 on: November 03, 2021, 04:40:01 pm »
FpDebug only supports Windows and Linux.
I don't know the FreeBsd API for debugging, or if it similar/same to/as the Linux "ptrace". But even then, that would need to be implemented/adapted.

What error do you get with GDB?


AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: fpDebug on FreeBSD x64 12.2
« Reply #2 on: November 03, 2021, 04:56:03 pm »
gdb:
No error msg, but breakpoints (e.g. in app FormShow) are ignored, no stops. IDE options dialog is:

debugger type: gdb
path: /usr/local/bin/gdb (valid file name)
only non-default options in the listview: TimeoutForEval=-1, UseAsyncCommandMode=off, WarnOnTimeOut=on.
« Last Edit: November 03, 2021, 05:12:05 pm by Alextp »

ccrause

  • Hero Member
  • *****
  • Posts: 843
Re: Debugger on FreeBSD
« Reply #3 on: November 03, 2021, 05:43:14 pm »
Please show all the messages from the Debug Output window, or enable debug logging and post that output.

Also read this FreeBSD note about updating an old gdb version. Not sure if that is relevant for your situation.

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: Debugger on FreeBSD
« Reply #4 on: November 03, 2021, 06:07:55 pm »
On the new app, I see the breakpoint working!
After change
- "debug info" from "external file" to "internal",
- "dwarf with sets" to 'drarf2"
problem solved!

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: Debugger on FreeBSD
« Reply #5 on: November 03, 2021, 06:12:39 pm »

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: [Solved] Debugger on FreeBSD
« Reply #6 on: November 04, 2021, 05:22:55 am »
Thanks Alexey!

 

TinyPortal © 2005-2018