如何使用调试点? [英] How to use debug points?

查看:108
本文介绍了如何使用调试点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚下载记事本+ +,因为我需要在传统的ASP项目。我与传统的ASP一个完整的初学者,并且已经宠坏asp.net和Visual Studio。我注意到记事本++有您可以将行号旁边调试点。有没有一种方法,我可以使用那些通过ASP脚本code步骤?

I just downloaded Notepad++ because I need to work on a classic asp project. I'm a complete beginner with classic asp, and have been spoiled with asp.net and visual studio. I noticed Notepad++ has debug points you can place beside the line numbers. Is there a way I can step through asp script code using those?

如果没有什么调试ASP经典段子最好/最简单的方法是什么?

If not what is the best / easiest way to debug asp classic scripts?

感谢

推荐答案

作为一个建议:如果你是一个开始,ASP的开发者,不要忘了把

As a suggestion: if you are a beginning asp-developer, don't forget to put

 <% Option Explicit %>

在每一页的开头。

at the beginning of every page.

为什么某些code不工作这可能会给您节省搜索/调试无数个小时。

This might save you countless hours of searching/debugging why certain code doesn't work.

对不起,如果我说明明显。

Sorry, if I'm stating the obvious.

更新:如果你会考虑只是普通的Res​​ponse.Write对网页:

我写了一个包含文件中有一大堆的传统的ASP调试程序,这将全部采用的Response.Write输出字符串到网页(在一个特定的识别前景色和背景色格式),但是这将所有测试的全局变量'ASPLIB_DeployStatus'(它可以被设置为'adsDeployed','adsDeliveredDebug','adsInDevelopment'或'adsInDevelopmentDebug'

I have written an include file with a whole bunch of classic asp debug routines, which will all use response.write to output strings to the web page (formatted in a specific recognizable foreground and background colour), but which will all test a global variable 'ASPLIB_DeployStatus' (which can be set to 'adsDeployed', 'adsDeliveredDebug', 'adsInDevelopment' or 'adsInDevelopmentDebug'.

根据调试文本会或不会被写入网页这个全球价值的价值。这意味着你可以留下您的调试语句在源$ C ​​$ C,但让他们从网页消失仅仅是全局变量设置为其他值。

Depending on the value of this global value the debug texts will or will not be written to the web page. Meaning you can leave your debug statements in your source code, but make them disappear from the web page just be setting the global variable to another value.

这帮助了我很多东西,为我节省了大量的时间。

This has helped me a lot and saves me considerable time.

如果任何人都应该通过注释这个答案有兴趣回应。

If anyone should be interested respond via comments to this answer.

这篇关于如何使用调试点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆