Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-10

Using dbugintf

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt
to Leonardo M. Ramé
Leonardo M. Ram? wrote
Does anyone knows how to use dbugintf?, I mean, where's the program that get the messages generated from SendDebug?.

The one I use and recommend is in lazarus/tools/debugserver.

There is also one in fcl-base/examples/dbugsrv.pp, but that is a primitive one which writes to the console.

Michael.

Show quoted text 11 lines
-- Leonardo M. Ram? http://leonardorame.blogspot.com -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Leonardo M. Ramé
to Michael Van Canneyt
Michael Van Canneyt wrote 15 lines
On Tue, 19 Oct 2010, Leonardo M. Ram? wrote: >Does anyone knows how to use dbugintf?, I mean, where's the program that >get the messages generated from SendDebug?. The one I use and recommend is in lazarus/tools/debugserver. There is also one in fcl-base/examples/dbugsrv.pp, but that is a primitive one which writes to the console. Michael.

Thanks!, it looks good.

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt: The one I use and recommend is in lazarus/tools/debugserver. There is also one in…

Op 2010-10-19 21:38, Michael Van Canneyt het geskryf:

Show quoted text 5 lines
> Does anyone knows how to use dbugintf?, I mean, where's the program that > get the messages generated from SendDebug?. The one I use and recommend is in lazarus/tools/debugserver.

There is also a GUI debug server in fpGUI:
<fpgui>/examples/apps/debugserver/

:-)

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net:8080/fpgui/

Reply by email

Graeme Geldenhuys
to Leonardo M. Ramé: Does anyone knows how to use dbugintf?, I mean, where's the program that get the messages…

Op 2010-10-19 19:10, Leonardo M. Ram? het geskryf:

Does anyone knows how to use dbugintf?, I mean, where's the program that get the messages generated from SendDebug?.

WARNING:
Just be warned that the dbugintf under Windows is dodgy/broken... if you generate too many debug lines (eg 500ms or less between calls), Windows starts loosing those debug messages and you don't see there output. All works fine under Linux though.

The safest debugging I have found to date, is the cached log classes in tiOPF. You don't need a tiOPF based project to use those classes. Simply register the log class (GUI, Console, File, System Events, System Logs or all of the above), then include 'tiLog' in the uses clause and start calling Log() or LogValue() or LogXXX().

I have done extensive testing with the tiOPF log classes, and they are defiantly reliable (unlike GDB integration in Lazarus IDE, or dbugintf under Windows). I use the tiOPF's Log To GUI mostly now - since I fixed the TThread.WaitFor work-around. tiOPF works fine with LCL too by the way.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net:8080/fpgui/

Reply by email