Вниз
Скачать: CL | DM;

Отладка сервисов.   Найти похожие ветки 

 
v2a   (2003-02-10 17:17) [0]

Добрый день!
Как осуществляется сабж? Есть какие-то стандартные средства в Делфи?


 
Axel ©   (2003-02-10 17:36) [1]

fr help:

"You can debug service applications by attaching to the service application process when it is already running (that is, by starting the service first, and then attaching to the debugger). To attach to the service application process, choose Run|Attach To Process, and select the service application in the resulting dialog.

In some cases, this approach may fail, due to insufficient rights. If that happens, you can use the Service Control Manager to enable your service to work with the debugger:

1 First create a key called Image File Execution Options in the following registry location:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion

2 Create a subkey with the same name as your service (for example, MYSERV.EXE). To this subkey, add a value of type REG_SZ, named Debugger. Use the full path to Delphi32.exe as the string value.
3 In the Services control panel applet, select your service, click Startup and check Allow Service to Interact with Desktop.

On Windows NT systems, you can use another approach for debugging service applications. However, this approach can be tricky, because it requires short time intervals:

1 First, launch the application in the debugger. Wait a few seconds until it has finished loading.
2 Quickly start the service from the Control Panel or from the command line:

start MyServ

You must launch the service quickly (within 15-30 seconds of application startup) because the application will terminate if no service is launched."



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.014 c
1-52907
Makhanev A.S.
2003-02-06 23:04
2003.02.17
Как работать отдельно с старшими и младшими байтами Cardinal?


3-52745
JibSkeart
2003-01-29 14:42
2003.02.17
Посоветуйте плизз варианты решений


1-53102
antoniz
2003-02-07 09:57
2003.02.17
Как скрыть заголовок окна


6-53159
Keeper
2002-12-25 01:03
2003.02.17
Примерчик winsock


3-52810
nikkie
2003-01-31 16:22
2003.02.17
DBLookupCombo без датасета




   Наверх