Recent

Author Topic: Your Debug tools and Debug Server (dbgintf)?  (Read 3071 times)

JimD

  • Jr. Member
  • **
  • Posts: 62
Your Debug tools and Debug Server (dbgintf)?
« on: September 08, 2018, 07:58:30 pm »
As I continue to learn FPC/Lazarus, I thought I would experiment with debugserver (dbugintf):
http://wiki.freepascal.org/DebugServer

I made a couple of demos: demo_debugserver and demo_debugserver_threads at:
https://github.com/jasc2v8/LazUnits/tree/master/LazDebugUnit

My questions are;

1. For Windows users, what tools do you typically use to debug your projects?

  IDE debugger, lazlogger, dbugintf, other?

2. Is there any interest out there in the debugserver and dbugintf?

  If yes, there is a minor bug I will submit a patch for, and maybe some other suggestions.

3. Specific to the debugserver and dbugintf, there is a note at the first link above:
  '--DD 05:38, 3 October 2015 (CEST): Does not seem to be thread safe!'

I have not done a 'stress test', but the demo_debugserver_threads "appears" to be thread-safe on Windows, at least for small projects.
Do you have any recent experience with this and will you share your opinion about the dbgintf unit?

-----
My config: Win10, Lazarus IDE version 1.8.4 with Free Pascal version 3.0.4.

MacWomble

  • Jr. Member
  • **
  • Posts: 79
Re: Your Debug tools and Debug Server (dbgintf)?
« Reply #1 on: September 08, 2018, 09:24:47 pm »
I think it's not cross-platform? Would be great ifit would also run on linux.
Mint 19.3 Cinnamon, FPC/ Lazarus Trunk 64Bit

Thaddy

  • Hero Member
  • *****
  • Posts: 14197
  • Probably until I exterminate Putin.
Re: Your Debug tools and Debug Server (dbgintf)?
« Reply #2 on: September 09, 2018, 06:55:49 am »
I think it's not cross-platform? Would be great ifit would also run on linux.
It is cross-platform. It also runs on linux. To my knowledge it is thread safe if you handle it thread safe. Maybe it's one of these bogus messages with which the wiki is -alas - littered.
Any information why it is not thread safe is missing....So that note isn't very helpful. Let me know if it is indeed the case.
Basically it is at its heart an IPC server. (and therefor usually thread safe)
« Last Edit: September 09, 2018, 07:00:44 am by Thaddy »
Specialize a type, not a var.

 

TinyPortal © 2005-2018