| View previous topic :: View next topic |
| Author |
Message |
Ray Porter Guest
|
Posted: Wed Feb 18, 2004 4:18 pm Post subject: Debugging ISAPI under XP Pro (D5 Enterprise) |
|
|
Hi everyone,
I have a user who just moved to an XP server and the move seems to have
broken some ISAPI dlls I wrote ages ago and haven't had to touch for a long
time. Now I need to debug my isapi stuff under XP Pro with IIS5.
I've googled the problem and found Alessandro's advice at
http://www.msdelphi.com and followed those instructions but Delphi still
doesn't stop at my break points. Is there something left out of the
recommendations on this web site? The old BDN instructions don't seem to be
workable anymore since I can't access "Act as part of the operating system"
under user rights assignment.
I also have Falcon Web Server installed so if anyone has gotten that working
to debug isapi dlls on xp, I'd appreciate any pointers.
Thanks,
============================================================
Ray Porter
Applications Analyst Programmer
Administrative Information Services, UNC-CH
Phone: (919) 966-5878
Fax: (919) 962-5840
Email: [email]ray_porter (AT) unc (DOT) edu[/email]
Web: http://www.unc.edu/~dragon
Meddle not in the affairs of dragons
for thou art crunchy and taste good with ketchup
|
|
| Back to top |
|
 |
Bob Swart Guest
|
Posted: Wed Feb 18, 2004 8:12 pm Post subject: Re: Debugging ISAPI under XP Pro (D5 Enterprise) |
|
|
Hi Ray,
| Quote: | I have a user who just moved to an XP server and the move seems to have
broken some ISAPI dlls I wrote ages ago and haven't had to touch for a long
time. Now I need to debug my isapi stuff under XP Pro with IIS5.
|
You could use my free IntraBob "host" application to debug ISAPI DLLs
with the Delphi IDE. See http://www.drbob42.com/IntraBob
Groetjes,
Bob Swart (aka Dr.Bob - www.DrBob42.com)
--
Bob Swart Training & Consultancy (eBob42) Borland Technology Partner
webmaster UK-BUG / DDG Developers Group - IntraWeb Authorized Trainer
|
|
| Back to top |
|
 |
James K Smith Guest
|
Posted: Wed Feb 18, 2004 8:47 pm Post subject: Re: Debugging ISAPI under XP Pro (D5 Enterprise) |
|
|
I'm sure Dr. Bob has a good solution there. You didn't mention ISAPI filter
or extension. If it's an extension, very simple: find a copy of WWWServer,
and use it for the host application when you run the dll. If filter, you
have to use DLLHost, plus a guid parameter, plus do a few more things.
James
|
|
| Back to top |
|
 |
Dmeister Guest
|
Posted: Thu Feb 19, 2004 2:06 am Post subject: Re: Debugging ISAPI under XP Pro (D5 Enterprise) |
|
|
Ray,
This is a known problem when trying to debug D5 ISAPIs under WinXP using
Alessandro's method. Do everything as instructed by Alessandro but copy
dllhost.exe from C:WINDOWSsystem32 to the same location as your ISAPI dll.
This has worked for me.
"Ray Porter" <ray_porter (AT) unc (DOT) edu> wrote
| Quote: | Hi everyone,
I have a user who just moved to an XP server and the move seems to have
broken some ISAPI dlls I wrote ages ago and haven't had to touch for a
long
time. Now I need to debug my isapi stuff under XP Pro with IIS5.
I've googled the problem and found Alessandro's advice at
http://www.msdelphi.com and followed those instructions but Delphi still
doesn't stop at my break points. Is there something left out of the
recommendations on this web site? The old BDN instructions don't seem to
be
workable anymore since I can't access "Act as part of the operating
system"
under user rights assignment.
I also have Falcon Web Server installed so if anyone has gotten that
working
to debug isapi dlls on xp, I'd appreciate any pointers.
Thanks,
============================================================
Ray Porter
Applications Analyst Programmer
Administrative Information Services, UNC-CH
Phone: (919) 966-5878
Fax: (919) 962-5840
Email: [email]ray_porter (AT) unc (DOT) edu[/email]
Web: http://www.unc.edu/~dragon
Meddle not in the affairs of dragons
for thou art crunchy and taste good with ketchup
|
|
|
| Back to top |
|
 |
Ray Porter Guest
|
Posted: Thu Feb 19, 2004 2:22 pm Post subject: Re: Debugging ISAPI under XP Pro (D5 Enterprise) |
|
|
"Dmeister" <daoud (AT) malikyar (DOT) com> wrote
| Quote: | Ray,
This is a known problem when trying to debug D5 ISAPIs under WinXP using
Alessandro's method. Do everything as instructed by Alessandro but copy
dllhost.exe from C:WINDOWSsystem32 to the same location as your ISAPI
dll.
This has worked for me.
|
Hi and thanks,
I've done that. I've also copied the complete contents of my project folder
into the scripts folder just in case it was a problem finding the debug
info. Nothing seems to work.
Any suggestions for another web server to use and guidelines for using it?
I have falcon web server installed but I can't seem to get it working
either.
Ray
|
|
| Back to top |
|
 |
Mark Bracey Guest
|
Posted: Fri Feb 20, 2004 3:54 pm Post subject: Re: Debugging ISAPI under XP Pro (D5 Enterprise) |
|
|
I've used Ominicron's httpd web server to debug isapi.
You do have 'Use TD32 Debug Info' turned on, right?
"Ray Porter" <ray_porter (AT) unc (DOT) edu> wrote
|
|
| Back to top |
|
 |
Mark Bracey Guest
|
Posted: Fri Feb 20, 2004 3:58 pm Post subject: Re: Debugging ISAPI under XP Pro (D5 Enterprise) |
|
|
Just yesterday I tried this method and it worked. This is D6 though.
I simply made sure my dll was compile with TD32 Debug Info turned on and my
output path was to the virtual directory.
I then did an 'Attach to Process', the process in question was InetInfo.exe.
The caveat is you have to trick Delphi by specifying a host application in
the 'Run-Parameters' dialog.
Once I did that an attached to InetInfo, I was able to debug my dll with now
problem.
Mark
|
|
| Back to top |
|
 |
William Egge Guest
|
Posted: Fri Feb 20, 2004 7:13 pm Post subject: Re: Debugging ISAPI under XP Pro (D5 Enterprise) |
|
|
You can also use my debugger host application.
http://www.eggcentric.com/
|
|
| Back to top |
|
 |
Dmeister Guest
|
Posted: Fri Feb 20, 2004 11:39 pm Post subject: Re: Debugging ISAPI under XP Pro (D5 Enterprise) |
|
|
Ray,
Are you compiling with debug symbols?
"Ray Porter" <ray_porter (AT) unc (DOT) edu> wrote
| Quote: |
"Dmeister" <daoud (AT) malikyar (DOT) com> wrote in message
news:40341a0b$1 (AT) newsgroups (DOT) borland.com...
Ray,
This is a known problem when trying to debug D5 ISAPIs under WinXP using
Alessandro's method. Do everything as instructed by Alessandro but copy
dllhost.exe from C:WINDOWSsystem32 to the same location as your ISAPI
dll.
This has worked for me.
Hi and thanks,
I've done that. I've also copied the complete contents of my project
folder
into the scripts folder just in case it was a problem finding the debug
info. Nothing seems to work.
Any suggestions for another web server to use and guidelines for using it?
I have falcon web server installed but I can't seem to get it working
either.
Ray
|
|
|
| Back to top |
|
 |
Ray Porter Guest
|
Posted: Mon Feb 23, 2004 1:50 pm Post subject: Re: Debugging ISAPI under XP Pro (D5 Enterprise) |
|
|
| Quote: | Ray,
Are you compiling with debug symbols?
|
Yes. FYI, I just installed D7 and the problem, at least with the Falcon Web
Server, disappeared. I wonder if the installation of VS.Net a couple of
weeks ago and installing D7 reset it to Delphi? At any rate, it's working
now with Faclon Web Server and that's all I need since I suspect these isapi
DLLs will eventually be replaced with asp.net applications.
Ray Porter
|
|
| Back to top |
|
 |
|