Recent

Author Topic: JclDebug.pas  (Read 12889 times)

dmitry

  • New Member
  • *
  • Posts: 32
    • Outlook Developer Tools
JclDebug.pas
« on: January 31, 2010, 06:01:07 pm »
i am using JclDebug in my Delphi app to track exceptions and call stacks.
JCL is supposed to fully support FPC, but I am having hard time making it work. For one, it does not look like JCL supports DGB files generated by FPC.
Did anybody use JclDebug/JclHookExcept in FPC? Any tips?

Thank you!
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

dmitry

  • New Member
  • *
  • Posts: 32
    • Outlook Developer Tools
Re: JclDebug.pas
« Reply #1 on: February 01, 2010, 05:47:06 am »
It looks like I shoudl use -Xm compiler switch to generate a MAP file:
http://delphitools.info/forums/index.php?topic=13.0
How do I do that?
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

Paul Ishenin

  • Sr. Member
  • ****
  • Posts: 274
Re: JclDebug.pas
« Reply #2 on: February 01, 2010, 10:35:45 am »
Delphi and FPC map files are completely different. I suppose this part of JCL will not work for you (of course if you will not rewrite it).

dmitry

  • New Member
  • *
  • Posts: 32
    • Outlook Developer Tools
Re: JclDebug.pas
« Reply #3 on: February 01, 2010, 03:13:54 pm »
Bummer :-(
Do you know of any other FPC-compatible library that would let me firgure out the source code location and call stack given an exception data?
Since I cannot debug in Lazarus a dll loaded by a host process, analyzing  an exception log is pretty much my only option...

Thank you!
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

Paul Ishenin

  • Sr. Member
  • ****
  • Posts: 274
Re: JclDebug.pas
« Reply #4 on: March 11, 2010, 02:56:19 am »
Maybe better we will implement dll debugging in Lazarus? Imo it is not a really big problem since gdb can attach to process to debug it. We only need to know pid. Gdb also can switch between threads to debug. Only Lazarus is missing appropriate interface to that things.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2706
Re: JclDebug.pas
« Reply #5 on: March 11, 2010, 09:41:13 am »
Since I cannot debug in Lazarus a dll loaded by a host process, analyzing  an exception log is pretty much my only option...

Thsi is still not working ?
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018