Recent

Author Topic: Please support debugging under Haiku OS  (Read 4068 times)

Alextp

  • Hero Member
  • *****
  • Posts: 1580
    • UVviewsoft
Please support debugging under Haiku OS
« on: November 29, 2021, 06:57:28 pm »
Martin, as you see in this topic, user cannot debug the CudaText in Lazarus,
https://github.com/Alexey-T/CudaText/issues/3374#issuecomment-981798509

"Debugger error
Ooops, the debugger entered the error state
Save your work now!
Hit Stop, and hope the best, we're pulling the plug.
The debugger failed to get the application's PID.
This may be caused my missing debug info."

The debug-info was added then, as 'embedded', and it don't help.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 7699
  • Debugger - SynEdit - and more
    • wiki
Re: Please support debugging under Haiku OS
« Reply #1 on: November 29, 2021, 07:23:01 pm »
On some OS pid values either look weird, or gdb uses yet another command to get them.

I can try to have a look, but for that I need a log file
https://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_debug_session


Google says Haiku has a POSIX api. Maybe FpDebug works? (if fpc thinks it compiles for linux, or if the IDE sets defines to activate Linux code....)

Alextp

  • Hero Member
  • *****
  • Posts: 1580
    • UVviewsoft
Re: Please support debugging under Haiku OS
« Reply #2 on: November 30, 2021, 10:14:51 am »
Martin, I may ask the user about logs but maybe it's hard for him to test it (and to activate FpDebug), so it will be better if _you_ take a look. Haiku OS can be installed for 10-30 min, maybe take a look at it?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 7699
  • Debugger - SynEdit - and more
    • wiki
Re: Please support debugging under Haiku OS
« Reply #3 on: November 30, 2021, 01:16:39 pm »
Sorry, but I don't currently have the time to test this myself.

To clarify, if I get a log, this also means it depends on how exactly it fails.
- Might be just adjusting a search pattern => ok
- Might be a lot more => then I don't know if/when I can deal with it

Another thing, the first google hit on haiku gdb https://discuss.haiku-os.org/t/gdb-10-2-for-haiku/10876
suggests gdb does not actually work ...

---
Btw, maybe there is a workaround

In the debugger options/ property grid
  InternalStartBreak = gdbsNone

Might avoid the pid check.
Might also have side effects, that the pause-button does not work, and breakpoints can not be changed while the app runs / not sure.


Or, instead of running in the debugger: run without debugger, then attach. (Again not tested)

Fred vS

  • Hero Member
  • *****
  • Posts: 2525
    • StrumPract is the musicians best friend
Re: Please support debugging under Haiku OS
« Reply #4 on: November 30, 2021, 01:37:09 pm »
Hello.

First Initial release of Haiku was in 2002.
And the last release is still a Beta release.

Are there here Haiku users that may tell us what advantage has Haiku vs Linux or FreeBSD ?

Thanks.
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs

Alextp

  • Hero Member
  • *****
  • Posts: 1580
    • UVviewsoft
Re: Please support debugging under Haiku OS
« Reply #5 on: November 30, 2021, 02:46:04 pm »
Martin,I guess I must wait for you. User answers not fast, sometimes with 10 days delays, he is busy.

PascalDragon

  • Hero Member
  • *****
  • Posts: 3668
  • Compiler Developer
Re: Please support debugging under Haiku OS
« Reply #6 on: December 01, 2021, 01:51:00 pm »
Are there here Haiku users that may tell us what advantage has Haiku vs Linux or FreeBSD ?

Please don't start off-topic discussions in existing threads.

Fred vS

  • Hero Member
  • *****
  • Posts: 2525
    • StrumPract is the musicians best friend
Re: Please support debugging under Haiku OS
« Reply #7 on: December 01, 2021, 02:07:51 pm »
Are there here Haiku users that may tell us what advantage has Haiku vs Linux or FreeBSD ?

Please don't start off-topic discussions in existing threads.

Ok, ok, sorry ( I never met a Haiku user and I would like to know what he looks like... ).

 :-[   :)
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs

 

TinyPortal © 2005-2018