Welcome, Guest
Username: Password: Remember me
Components and Libraries for Web Development, discussions, problems and suggestions
  • Page:
  • 1

TOPIC:

Debugging Apache Module 1 month 1 week ago #18340

  • Michael
  • Michael's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 13
  • Thank you received: 0
Hi! I'm currently in the transition phase to convert a Delphi Apache 2.4 module to Freepascal....
I'm getting some (for me) confusing errors - basically always internal server errors (code 500) - that for me point to a problem
in the handlers that throw an exception....

So... now how can I debug the module?
In Delphi I use the option Start -> Parameter -> host is httpd.exe
Params are -X (to have only one instance)

I saw the option to do that in CodeTyphon (32bit) too but the buttons to start debugging are always grayed out.
In addition if I try to attach the debugger to httpd.exe (that I started in a console) the assembler window pops
up stopping at an int 3 software interrupt. I have then no option to continue the debugger.

What am I doing wrong?

Please Log in or Create an account to join the conversation.

Debugging Apache Module 1 month 1 week ago #18341

  • Michael
  • Michael's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 13
  • Thank you received: 0
Okay... I could not figure this out so it took me quite some time to get a grip on the problem...
In delphi if you do

Response.CustomHeaders.Add( 'Access-Control-Allow-Credentials : true');

in the actions OnRequest Handler one simply can see this header line added...

Whereas in FPC fpWeb package that line is illegal and results in an ominous 'Header empty' error.

The problem seems to be that the headers stringlist uses a Name=Value approach so the
Value is empty if one does the CustomHeaders.Add call....

Instead of the .add routine I now use the Response.SetCustomHeader method - that does the trick...


But... I'm still struggling to get the debugger running...



 

Please Log in or Create an account to join the conversation.

  • Page:
  • 1