On 27/09/2013 17:53, Graeme Geldenhuys wrote:
Just a follow-up on this thread.
The bad news
------------
No matter what I tried, under Windows, Linux or FreeBSD... I couldn't
successfully debug a CGI application that uses multiple threads (I have
threads that do "log to file" etc).
On windows afaik there is not much that can be done.
On linux, you can try iirc set scheduler locking (it can be given al
command line arg to gdb, so it can be set in bthe global debug options.
But I have not used it myself, ...
The not-so-good news
--------------------
One (kinda big) issue though: I cannot query ANY variables to see their
values. This is a bit of a pain, but at least I can step through my CGI
app, and often if..then etc statements can be followed, so I can guess
the values. I can also follow the execution flow of my application -
which is already very useful.
@Martin
Any ideas why using my latest debug method, for CGI apps, doesn't allow
me to query variable values? I'm running Lazarus Trunk from about 5 days
ago. Windows 2000, using FPC 2.6.2 and GDB 7.2. I also tried GDB 7.4 and
that made no difference either.
Can you send me a log for this? You use debug info in the exe, not
external?
Though if it can find the line info, then it should also have the info
about variables.
What does the thread window show?
If you start the cgi from within lazarus can you see any variables? (as
far as it gets, before it fails due to missing environment.)
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus