JoshyFun wrote:
Hello Lazarus-List,
Sunday, October 11, 2009, 4:36:39 PM, you wrote:
LJ> I've tried putting break points inside the fpHTTP unit for FindModule and
other
LJ> methods and execution will not stop there. In fact, the coloring of the
LJ> breakpoint indicates that it is somehow optimized out or just not linked
into
LJ> the application and in practice that is what is happening.
FPC is by default compiled without debug information, so you can not
debug fpc units or setup breakpoints. You can recompile your FPC
with debug information.
Thanks, that makes sense though I'd rather not have to recompile fpc which was a
bit of a hassle on windows if I remember my last attempt at that correctly.
Still doesn't explain why, in my web module I have the following in my web
module's unit:
initialization
{$I mod_flex_opf.lrs}
RegisterHTTPModule('opf', Tdatasrv);
But when I call
ModuleFactory.FindModule('opf'); // does not work
I have verified that the module does get registerd but I have two problems.
1. ModuleFactory.FindModule does not find the module under the name that I
registered it with. No idea why.
2. When I explicitly create the webmodule and try to use it, I get exception
saying that it has no actions or default defined. That is not true since I have
a default handler for the webmodule's OnRequest event.
So maybe it is better for me to simple ask this:
Is there a way that I can use the weblaz framework and being able to debug the
application with break points, etc? CGI is obviously out for that which is why
I asked before about FastCGI. Apache modules seem to have the same limitation
as CGI from what I can see. Not being able to trace through and debug an
application seems to be very counter productive to me.
I can't tell you how appreciative I would be if I could just get to being
productive with Lazarus and LazWeb after 8 days of frustration and road blocks.
Thanks in advance.
--
Warm Regards,
Lee
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus