Debuggin datasnap application server

I have:
- Delphi 7 Enterprise
- Windows 2000 prof.
- Datasnap application server and client on the same machine
- Borland Socket server

How can I debug the functions that exists in the application server?

when I run the application server from Delphi IDE, and I run clients executables, the clients open a new instance of the application server, and no one use my applicaiton server that ready to be debuged in Delpih IDE :(

Please heeeeeeeeeeeeeeeeeeelp
Motaz

LVL 7
MotazAsked:
Who is Participating?
 
Mohammed NasmanConnect With a Mentor Software DeveloperCommented:
Hello Motaz

  First Create Project group that contian the Server App and client, then from project menu choose "compile all projects"

Second, go project manager, make the server app as default place your break point there, then choose run

back to project manager again, and make the client app the default, run it, and when you call any method on the server, it should be stopped where you placed the break points

HTH

Regards
Mohammed
0
 
Ivanov_GCommented:

  Run / Attach to Process....
0
 
MotazAuthor Commented:
which process, and what then?

Motaz
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
Ivanov_GCommented:

   Okay, here is the routine :

   Open Delphi and there - the server. Build / Register. Then in Run/Parameters for Host application put C:\WinNT\system32\dllhost.exe (C:\Windows for XP users). Make sure you have debug info. Put the break points and run it.

   Run the client application and when you come the break line it should stop.
0
 
MotazAuthor Commented:
Nasman,
the same thing happens, I tried new project, when I run client, it launches new instance of the server.

Ivanov, I'm still cann't udernstand where can I do that, can you explain for clearly

Motaz
0
 
Mohammed NasmanSoftware DeveloperCommented:
mmm, that's strange

try to build a new test app with one method and test it, if it's fail again, send it to my email and i will have a look for it
0
 
MotazAuthor Commented:
Two files has been sent to Mohamed Nasman Almutkhalif
0
 
Mohammed NasmanSoftware DeveloperCommented:
Motaz, I tested the projects u sent to me, it's working fine and the server stop at the break points

Did you change anything in Delphi options or in debugging?

or you made anything 3'abi :p
0
 
MotazAuthor Commented:
Thanks Mohammed Nasman, it works fine in another computer, really you are good and Mutkhalif

Motaz
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.