HB_TRACE_NEW

246 views
Skip to first unread message

alex;

unread,
May 16, 2025, 12:08:56 AMMay 16
to Harbour Users
Hello.
I want hb_trace to be enabled by pressing ALT+T and output to a separate console window and file. And it also turned off by pressing ALT+T.
How to implement it?

WBR, alex;

alex;

unread,
May 16, 2025, 12:55:39 AMMay 16
to Harbour Users
First of all, add to hbtrace.h static HB_BOOL s_lTraceAlter = HB_FALSE;

WBR, alex;

пятница, 16 мая 2025 г. в 07:08:56 UTC+3, alex;:

alex;

unread,
May 16, 2025, 1:16:14 AMMay 16
to Harbour Users
Secondly,  need to implement functions hb_TraceAlterEnable() for Harbour AND hb_tr_TRACETOGGLE() in C.

WBR, alex;
пятница, 16 мая 2025 г. в 07:55:39 UTC+3, alex;:

alex;

unread,
May 16, 2025, 1:28:16 AMMay 16
to Harbour Users
Program c:\dev\qtcontribs\hbqtwidgets\tests\composite.prg crashes in QT_VERSION > 5.5.x.
Object of class HB_HBQPROXYSTYLE not destroyed.  
And that's why the following question arose.
Screenshot 2025-05-16 082748.jpg
пятница, 16 мая 2025 г. в 08:16:14 UTC+3, alex;:

alex;

unread,
May 16, 2025, 1:30:58 AMMay 16
to Harbour Users
will thanks for advise

WBR, alex;

пятница, 16 мая 2025 г. в 08:28:16 UTC+3, alex;:

alex;

unread,
May 16, 2025, 1:39:05 AMMay 16
to Harbour Users
Pritpal is still silent. I hope he comes back.

пятница, 16 мая 2025 г. в 08:30:58 UTC+3, alex;:

Ash

unread,
May 16, 2025, 6:22:28 AMMay 16
to Harbour Users
Hello Alex,

May I ask as to which debugger you use.

Regards,
Ash

alex;

unread,
May 16, 2025, 6:27:26 AMMay 16
to Harbour Users
Hi, Ash.
If on image up. It's windbg.
To install use in PowerShell
winget install Microsoft.WinDbgTo run
>windbgx

It's on Windows 10.

WBR, alex;
пятница, 16 мая 2025 г. в 13:22:28 UTC+3, Ash:

Ash

unread,
May 16, 2025, 6:53:23 AMMay 16
to Harbour Users
Alex,

Thanks.

Can windbg be used to debug harbour apps?

Regards,
Ash

alex;

unread,
May 16, 2025, 6:58:20 AMMay 16
to Harbour Users
I not tryed.  Only for this case.
See learn.microsoft.com

WBR, alex;

пятница, 16 мая 2025 г. в 13:53:23 UTC+3, Ash:

Francesco Perillo

unread,
May 16, 2025, 7:10:57 AMMay 16
to harbou...@googlegroups.com
In the end, harbour compiled programs are standard executable running x86 code so you can debug them at that level. I mean, you can observe all the C structure that are internals to Harbour runtime.

Can you debug the code of YOUR program ? No. That debugger has no idea what was the source language, it may know something if the compiler added those informations but I exclude it may know more, expecially since Harbour code can be translated to PCODE...

--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/7217cb4c-95a5-49eb-8a48-d0660bff7912n%40googlegroups.com.

Ash

unread,
May 16, 2025, 8:05:25 AMMay 16
to Harbour Users
Hello Francesco,

Thanks for clarifying. 

Regards,
Ash

alex;

unread,
May 17, 2025, 3:56:12 AMMay 17
to Harbour Users
I think that since I'm debugging an HbQt application, I need to use the QTCWindow class from c:\dev\harbour\contrib\gtqtc\gtqtc.h. Only hbtrace in C, and gtqtc in C++. How to do it?
WBR, alex;

пятница, 16 мая 2025 г. в 15:05:25 UTC+3, Ash:

alex;

unread,
May 17, 2025, 4:18:08 AMMay 17
to Harbour Users
We need to declare s_oTraceAlterConsole in hbtrace.h. I think there should be a Harbor ptr type.

суббота, 17 мая 2025 г. в 10:56:12 UTC+3, alex;:

alex;

unread,
May 17, 2025, 1:45:57 PMMay 17
to Harbour Users
gtqtc cannot be used because it uses its own QApplication and QEventLoop.
WBR, alex;

суббота, 17 мая 2025 г. в 11:18:08 UTC+3, alex;:
Reply all
Reply to author
Forward
0 new messages