Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VBScript/ASP-Classic "Stop" Statement Not Breaking Into Debugger

I've used to put a "stop" statement in my VBScript/ASP-Classic code to break into debugger (Microsoft Script Editor, that comes with Microsoft Office).

But now it isn't breaking anymore. The "stop" is ignored and nothing happpens.

The server-side debugging flag is already enabled in IIS

How to solve this?


Sample Code, hello.asp

stop 
Response.Write "Hello W."
like image 754
Daniel Silveira Avatar asked Jun 09 '09 12:06

Daniel Silveira


People also ask

How do I run a Vbscript in debug mode?

Enabling Debug ModeOn the Tools menu, click Internet Options. In the Internet Options dialog box, click the Advanced tab. In the Browsing category, clear the Disable script debugging check box. Click OK.

How do I enable debugging in IIS?

To start debugging, select IIS Express (<Browser name>) or Local IIS (<Browser name>) in the toolbar, select Start Debugging from the Debug menu, or press F5. The debugger pauses at the breakpoints.


1 Answers

Are you running VBScript in an Office app? Wouldn't that be VBA?

For VBScript debugging you need to enable that with the /d switch on with wscript or cscript when running the vbs file:-

 wscript /d c:\myfolder\myscript.vbs

Edit: Did I miss the ASP-Classic bit?

In this case you have turned off debugging in the application configuration. In IIS6 open properties on the ASP application, select Home Directory tab, click "Configuration..." in the Application Settings section. Select the Debugging tab, select the debugging flags.

like image 65
AnthonyWJones Avatar answered Sep 28 '22 00:09

AnthonyWJones