Debugging VB code in aspx files
I am converting an old asp project to a new .NET project. Now, all vb code are inside aspx files, and we are on the process of moving all vb script from aspx files to .vb files. My problem is, I can't debug the vb script inside most of the aspx files. All my friends don't have this problem. I think the problem is with vb text editor.
I am using Visual Studio 2008.
Is there anyway, I can make visual studio understand that aspx files have vb script inside them.
can't debug the code
can debug the code开发者_运维问答
You can set a breakpoint on a particular line in the VB Script. If that line is hit you will see Visual Studio highlight that line.
You can use the Visual Studio Debugger to debug a .vbs (vbscript) file executed with cScript.exe by using the //X flag at the command line. To debug MyTest.vbs
cscript.exe MyTest.vbs //X
The //X will set a breakpoint and invoke the "select a debugger" dialog where you can choose Visual Studio and step into your vbs code.
精彩评论