VBScript / ASP-Classic Stop statement does not break in debugger

I used the " stop " expression in my VBScript / ASP-Classic code to go into the debugger (Microsoft Script Editor that comes with Microsoft Office).

But now it no longer breaks. " stop " is ignored and nothing happens.

Server side debug flag is already enabled in IIS

How to solve this?


Sample code, hello.asp

 stop Response.Write "Hello W." 
+4
source share
3 answers

Try this instead of Stop :

 Dim I I = 1 / 0 
+2
source

Are you using VBScript in an Office application? Won't it be VBA?

To debug VBScript you need to enable this with the / d switch using wscript or cscript when running the vbs file: -

  wscript /dc:\myfolder\myscript.vbs 

Change Am I missing a bit of ASP-Classic?

In this case, you disabled debugging in the application configuration. In the open IIS6 properties in the ASP application, select the "Main Directory" tab, click "Configuration ..." in the "Application Settings" section. Select the Debug tab, select the debug flags.

+1
source

This may be a registry problem - see http://support.microsoft.com/kb/252895

+1
source

Source: https://habr.com/ru/post/1285962/


All Articles