View Full Version : Editor that allows you to "Step Through" ASP Code?
kelemvor
01-17-2004, 08:08 PM
Howdy,
I'm trying to debug some code and it's really hard when just looking at the code. Is there some sort of editor out there where you can step through the code and monitor variables and such to see exactly what it's doing where and when?
I'm assuming it'd have to be installed on the server somehow since ASP can't be run locally. My site is hosted on a 3rd party site if that matters.
Thanks.
oracleguy
01-17-2004, 10:22 PM
As far as I know, you can't however depending on what it is doing, I've found you can debug it in VB6 since it obviously lets you step through the code line by line and the syntax is pretty similar.
There are also other methods in debugging asp code, just depends on the code you are debugging.
kelemvor
01-17-2004, 10:43 PM
It's mainly just a couple SQL statements that write to a table but one record keeps writing the data from the one before it and I can't figure out why. Just wanted to step through the whiles, fors, etc to figure out what wasn't working right.
P.S. Does email notification not work on this forum? hmm.
allida77
01-18-2004, 07:22 AM
I have never heard of an asp debugger either (and that has always been a complaint of asp developers but its improved with asp.net but not if you use remote debugging which I have never even heard of working well but I digress) . The things I use (which I assume you do too) is the good ole :
Response.Write("sql=" & sSQL & " var1=" & ect...)
Response.End
AFAIK this is about it. If your working through loops just do the above the first time through and narrow down where your variables are getting messed up.
P.S. If you have a spam filter on your email sometimes it will put emails from here to in your spam folder.
M@rco
01-19-2004, 12:42 PM
Ummm... you can use the free Microsoft Script Debugger (read up here (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sdbug/Html/sdbug_1.asp), download here (http://www.microsoft.com/downloads/details.aspx?FamilyId=2F465BE0-94FD-4569-B3C4-DFFDF19CCD99&displaylang=en)) to step through scripts (once you've switched on server-side debugging), and if you've got it, then Visual Studio lets you do much the same, but in a more sophisticated way.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.