Hi Eric
I'm glad it is working well for you.
--
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/6156424d-b97d-42ae-982a-2cf2adac8980n%40googlegroups.com.
Hi Javier
We deliberately removed the old behaviour where it stops on the first executable line because it was a pain for multiple threads.
It should stop at the first breakpoint and I did some experimenting and sometimes it does and sometimes it doesn't as I discovered when doing some tests last night.
It is news to me that AltD() helps with that behaviour, so that is useful input thank you.
We (and Claude) need to check that out, don't hold your breath though :).
--
Regards
Alex
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/88286d45-c9a8-454e-b7f4-f1228ff16db8n%40googlegroups.com.
I also discussed this with Claude after your reply, here's a short summary of its take:
"Your response confirms the old shared-state behavior was removed deliberately for the multi-thread fix (TSD-based debug info), which matches what we found comparing the generated dbg_lib.prg between versions. The fact that it's inconsistent ("sometimes it does, sometimes it doesn't") suggests a race condition where the breakpoint is registered correctly via TCP, but the worker thread's debug context isn't initialized/synced in time to see it. AltD() likely works as a workaround because it forces that per-thread initialization manually — the same sync that's supposed to happen automatically (but doesn't always) when a breakpoint hits.
Practically: AltD() at the start of the function/endpoint you want to debug seems like the most reliable approach for now, until this gets a proper fix."
Thanks again for the quick reply!
Regards,
Javier