How to bypass the alarm box to ask if user like to open debugger to debug or not

C

Carfield Yim

Hi , I have a java application which get data from a Windows
executable to get data. In order to prevent the service interrupt for
some reason my java application will detect if the process exit and
restart the Windows executable if it is terminated.

However, I just found that if the exe crashed, rather than it just
restart. Windows will display an alarm box to ask if user like to open
debugger to debug or not, if there is no user to handle the dialog the
process will not restart.

Does anyone know how to bypass this dialog completely?
 
D

Dave Patrick

To disable the good Dr. Watson completely.

HKLM\Software\Microsoft\Window­s NT\CurrentVersion\AeDebug
set the Reg_Sz string value
Auto="0"
and possibly change the Reg_Sz string for
Debugger="drwtsn32 -p %ld -e %ld -g"
to
Debugger=""

If you later change your mind, from the "Run" box
drwtsn32 -i

Else if you just want no notification, from the run box;
drwtsn32
then uncheck the box for "Visual Notification"

HKEY_LOCAL_MACHINE\SOFTWARE\Mi­crosoft\DrWatson
"VisualNotification"=dword:000­00000

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
 
C

Carfield Yim

Thanks a lot. However just found out that the company policy don't
allow disabling Dr. Watson, anyway thanks~

To disable the good Dr. Watson completely.

HKLM\Software\Microsoft\Window­s NT\CurrentVersion\AeDebug
set the Reg_Sz string value
Auto="0"
and possibly change the Reg_Sz string for
Debugger="drwtsn32 -p %ld -e %ld -g"
to
Debugger=""

If you later change your mind, from the "Run" box
drwtsn32 -i

Else if you just want no notification, from the run box;
drwtsn32
then uncheck the box for "Visual Notification"

HKEY_LOCAL_MACHINE\SOFTWARE\Mi­crosoft\DrWatson
"VisualNotification"=dword:000­00000

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]http://www.microsoft.com/protect

Carfield Yim said:
Hi , I have a java application which get data from a Windows
executable to get data. In order to prevent the service interrupt for
some reason my java application will detect if the process exit and
restart the Windows executable if it is terminated.
However, I just found that if the exe crashed, rather than it just
restart. Windows will display an alarm box to ask if user like to open
debugger to debug or not, if there is no user to handle the dialog the
process will not restart.
Does anyone know how to bypass this dialog completely?
 
D

Dave Patrick

You're welcome.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
Thanks a lot. However just found out that the company policy don't
allow disabling Dr. Watson, anyway thanks~
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top