BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Debugging D5 under XP

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker
View previous topic :: View next topic  
Author Message
DaveH
Guest





PostPosted: Tue Sep 02, 2003 5:56 pm    Post subject: Debugging D5 under XP Reply with quote



I just upgraded to XP and was trying to debug my Delphi 5 ISAPI app. I can
start/stop the server Ok, but the Delphi wont stop at any breakpoints.

I found a few messages that said that the problem is that the DLL has to be
in the same folder as the project so it can find the symbol table. I
repointed my /scripts directory to my project location and I still have the
same problem.

Has anyone else experienced this?

Is there a fix?

DaveH




Back to top
Dmeister
Guest





PostPosted: Wed Sep 03, 2003 12:33 am    Post subject: Re: Debugging D5 under XP Reply with quote



AFAIK you had to copy the dllhost.exe to the same directory as your ISAPI.

"DaveH" <daveh (AT) sympatico (DOT) com> wrote

Quote:
I just upgraded to XP and was trying to debug my Delphi 5 ISAPI app. I
can
start/stop the server Ok, but the Delphi wont stop at any breakpoints.

I found a few messages that said that the problem is that the DLL has to
be
in the same folder as the project so it can find the symbol table. I
repointed my /scripts directory to my project location and I still have
the
same problem.

Has anyone else experienced this?

Is there a fix?

DaveH






Back to top
Dave Hackett
Guest





PostPosted: Wed Sep 03, 2003 1:23 am    Post subject: Re: Debugging D5 under XP Reply with quote



Well, it took a lot of trial and error but I think I found the simple
solution.

You can compile your ISAPI app and have the DLL placed in the /script folder
just like before. You do not need to copy your project files into the same
location as the DLL or change your /script setting to point to your project
folder and you do not need to turn on Remote Debugging in your Project
Options.

All you need to do is set the "Debug Symbols Search Path" found in
"Tools/Debugger Options/General Tab" to point at your project's folder.

Works for me.
DaveH



"DaveH" <daveh (AT) sympatico (DOT) com> wrote

Quote:
I just upgraded to XP and was trying to debug my Delphi 5 ISAPI app. I
can
start/stop the server Ok, but the Delphi wont stop at any breakpoints.

I found a few messages that said that the problem is that the DLL has to
be
in the same folder as the project so it can find the symbol table. I
repointed my /scripts directory to my project location and I still have
the
same problem.

Has anyone else experienced this?

Is there a fix?

DaveH







Back to top
Shiv Kumar
Guest





PostPosted: Wed Sep 03, 2003 11:35 am    Post subject: Re: Debugging D5 under XP Reply with quote

Dave I'd be interested in knowing how to debug ISAPI applications under XP.
That is the steps required from start to end in setting up an XP machine
(IIS 6.0) for debugging Delphi ISAPI Applications.

--
Shiv R. Kumar
The Delphi Apostle
http://www.matlus.com


Back to top
Dmeister
Guest





PostPosted: Wed Sep 03, 2003 12:13 pm    Post subject: Re: Debugging D5 under XP Reply with quote

Shiv,
I've used the method described in www.msdelphi.com (click on web development
link) successfully using D5, D6, D7 under both Windows 2000 and XP. The
only time I had to modify the approach -- and very slightly at that -- was
when trying to debug D5 under Windows XP. The only change here was that I
had to copy the dllhost.exe to the same folder as my ISAPI.DLL.

"Shiv Kumar" <shivk (AT) erols (DOT) com> wrote

Quote:
Dave I'd be interested in knowing how to debug ISAPI applications under
XP.
That is the steps required from start to end in setting up an XP machine
(IIS 6.0) for debugging Delphi ISAPI Applications.

--
Shiv R. Kumar
The Delphi Apostle
http://www.matlus.com





Back to top
Shiv Kumar
Guest





PostPosted: Wed Sep 03, 2003 3:50 pm    Post subject: Re: Debugging D5 under XP Reply with quote

One of my problems with the approach described there is that it doesn't not
simulate the target environment close enough. The same goes for WAD.
Primarily, the issues are related to multi-threaded (mostly COM) issues.

--
Shiv R. Kumar
The Delphi Apostle
http://www.matlus.com


Back to top
DaveH
Guest





PostPosted: Wed Sep 03, 2003 4:44 pm    Post subject: Re: Debugging D5 under XP Reply with quote

I did finally get IIS working but I'll have to try it again and write down
the steps if you still want them. I switched to WebWeaver for development
and only deploy on IIS. I found that WebWeaver starts up much faster. I
was having to wait 15-20 seconds for IIS to start accepting connections
everytime I started debugging.

You can get the free WebWeaver here...

http://www.brswebweaver.com/

DaveH


"Shiv Kumar" <shivk (AT) erols (DOT) com> wrote

Quote:
Dave I'd be interested in knowing how to debug ISAPI applications under
XP.
That is the steps required from start to end in setting up an XP machine
(IIS 6.0) for debugging Delphi ISAPI Applications.

--
Shiv R. Kumar
The Delphi Apostle
http://www.matlus.com





Back to top
Shiv Kumar
Guest





PostPosted: Wed Sep 03, 2003 6:31 pm    Post subject: Re: Debugging D5 under XP Reply with quote

Dave,

I'd be interested in knowing the steps involved for setting up IIS for
debugging.

Thanks

--
Shiv R. Kumar
The Delphi Apostle
http://www.matlus.com


Back to top
Dmeister
Guest





PostPosted: Thu Sep 04, 2003 2:37 am    Post subject: Re: Debugging D5 under XP Reply with quote

Quote:
Primarily, the issues are related to multi-threaded (mostly COM) issues.

Please elaborate. I have yet to come across a situation where the code I
debugged via the msdelphi.com approach deviated from the version that was
deployed to production.



Back to top
Shiv Kumar
Guest





PostPosted: Thu Sep 04, 2003 2:48 am    Post subject: Re: Debugging D5 under XP Reply with quote

What can I say?
In a production environment I've had issues that didn't show up (or were not
re-producible) when de-bugging that way, but were re-producible in regular
way.

Quote:
Please elaborate. I have yet to come across a situation where the code I

Yes, that's possible, but that's not to say you won't get errors in
production. There have been many times I've deployed an app only to find
that some client gets a COM (one of those -234456778 kind of errors) error.
I'm only able to re-produce these errors debugging to regular way.

--
Shiv R. Kumar
The Delphi Apostle
http://www.matlus.com




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.