473,732 Members | 2,227 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How does one debug ASP Classic with VWD Express?

My question is simple:
How does one debug ASP Classic with Microsoft Visual Web
Developer Express 2005 ("VWD")?

Looming in the back of anyone's mind when you see a posting
like this on any newsgroup is "didn't this guy read the docs?"

Frankly, I "sort of did" a number of times. I feel the days of
"things that are intuitively obvious" to use long ago gave way to
"things that are clear after a 'Hello World'" example. And those
things now are gone (since .Net) and have perhaps given way
to the on-line-tutorial (at best). Still, I'm at a loss for any easy
to use instructions for debugging Classic ASP with VWD Express.

I'm not even sure, this time, what I'm looking for. With VB6 and
VBA, I fully expect "Step-Into, Step-Over, and Step-Outof" control
of execution — plus at least a Call Stack window of some sort.
But with VBScript, are these things possible? I assume they are
because isn't it the fully-compiled language system that cannot be
"parsed," if you will, in execution mode? Then again, we have the
whole IIS/ASP architecture. I've always debugged these programs
with just Notepad and a browser — and often-times, Front Page.
And I never was consistently successful getting Front Page to do
anything clever like grab ahold of an instance of a debugger or a
broswer and have them all work together.

I written soooo much in VB6. I'm spoiled by the simplicity of the
programming scenario (fat client / one machine) and the luxury of
the VB6 Development Environment. My experience from all that
work is now reduced to just so many bad habits.

Before I get into translating all that VB6/VBA/VBScript into VB.Net
or C#, I need to pay some bills! And this is getting harder and
harder to do now that my business seems to have moved over to
100% web-based applications. My productivity is in the toilet!

So, my friends of the ASP Classic and VWD Express, H-E-L-P !!!

Jim Rodgers

Aug 15 '07 #1
5 3884

"Jim Rodgers" <Ji********@dis cussions.micros oft.comwrote in message
news:12******** *************** ***********@mic rosoft.com...
My question is simple:
How does one debug ASP Classic with Microsoft Visual Web
Developer Express 2005 ("VWD")?

Looming in the back of anyone's mind when you see a posting
like this on any newsgroup is "didn't this guy read the docs?"

Frankly, I "sort of did" a number of times. I feel the days of
"things that are intuitively obvious" to use long ago gave way to
"things that are clear after a 'Hello World'" example. And those
things now are gone (since .Net) and have perhaps given way
to the on-line-tutorial (at best). Still, I'm at a loss for any easy
to use instructions for debugging Classic ASP with VWD Express.

I'm not even sure, this time, what I'm looking for. With VB6 and
VBA, I fully expect "Step-Into, Step-Over, and Step-Outof" control
of execution - plus at least a Call Stack window of some sort.
But with VBScript, are these things possible? I assume they are
because isn't it the fully-compiled language system that cannot be
"parsed," if you will, in execution mode? Then again, we have the
whole IIS/ASP architecture. I've always debugged these programs
with just Notepad and a browser - and often-times, Front Page.
And I never was consistently successful getting Front Page to do
anything clever like grab ahold of an instance of a debugger or a
broswer and have them all work together.

I written soooo much in VB6. I'm spoiled by the simplicity of the
programming scenario (fat client / one machine) and the luxury of
the VB6 Development Environment. My experience from all that
work is now reduced to just so many bad habits.

Before I get into translating all that VB6/VBA/VBScript into VB.Net
or C#, I need to pay some bills! And this is getting harder and
harder to do now that my business seems to have moved over to
100% web-based applications. My productivity is in the toilet!

So, my friends of the ASP Classic and VWD Express, H-E-L-P !!!
I have no idea what VWD's debug capabilities are, however, I do know of a
simple way to test the script debugging capabilities of your system as it
sits:

Open a command prompt, and execute a valid .vbs or .js script file, passing
the //x option. You may wish to copy an existing script file, or create a
simple one just for this -- whatever's easiest for you. The only
requirements are that it must be syntactically valid, and it must have at
least one executable line of code (i.e, for .VBS files, it can't just
contain Dim statements.)

For argument's sake, let's suppose you have opened a command prompt, changed
directory to C:\Test, and a valid VBScript file named C:\Test\debugch eck.vbs
exists. At the prompt type:

debugcheck.vbs //x

This will attempt to execute the script in the default debugger,
automatically breaking on the first executable line. It may give you a
choice of more than one debugging app, some or all of which may or may not
be correctly installed.

The goal here is to establish whether or not a working script debugger is
installed. Debugging ASP script is more involved than debugging client-side
script, IIS settings, permissions, blah blah blah -- but chasing any of
those is pointless unless you know you have the software to debug *any*
script installed/working. Executing client-side script //x is by far the
easiest reality check for this.

Simple flow chart:
------------------

I want to Debug ASP
\|/
Is a script debugger installed and working?
\|/ \|/
No Yes
\|/ \|/
Install one, Attach to ASP
or make one script host process
work and set break points
\|/
Does it work? -Yes -Woohoo,
done
\|/
No
\|/
[too convoluted
to diagram here]
Good luck!

-Mark
Jim Rodgers

Aug 15 '07 #2
VWD isn't really designed for classic ASP.

Try ASP Studio, it's designed for debugging classic ASP.

http://en.ewebxp.com/
Aug 16 '07 #3
"Jon Paal [MSMD]" wrote:
VWD isn't really designed for classic ASP.
Try ASP Studio, it's designed for debugging classic ASP.
http://en.ewebxp.com/

On that site, I look for info and find this:

"With no server , you can edit and debug an ASP project with the help of ASP
server integrated capable of debugging , after you create an ASP project
simply."

....Is this a foreshadow of the Help File?

Actually, what I am looking for is a VWD-resident (add-on?)
that can wizard my lazy butt into an easy-to-use debug
configuration for ASP Classic — and perhaps another one that
can show me how actually to debug with it.

I learned long ago at first to avoid 3rd party tools and controls.
Usually it's just more license fees and an incompatible product
life cycle. I don't have that kind of time since I use whatever I
use on about a dozen PC's in a given month. 3rd party stuff,
for example a reasonable SNMP Manager object, I have to
keep in just one or two places because of license and, of course,
configuration issues. Those components get shared only after
they are compiled (VB6).

=============== =====

As I understand it, there is, somewhere, a set of instructions
that will show me how to set-up and use VWD for debugging
Classic ASP with VBScript.

Obviously, VWD is somewhat hostile towards development with
Classic ASP. There is no ASP file type in the Add New File
Dialog, and id you try to use the "Comment" button on the
toolbar, you get the <!-- --treatment around your VBScript
statements rather than apostrophe's !!! I'm not impressed.
I'd fire the guy who thought THIS was a good idea.

But I want to use it, and I believe these limitations either
already have secret solutions, or MS will be reasonable and
fix it, for crying out loud!

=============== =

So, can anyone tell me how to open my files in VWD can
proceed to debug them?

Sincerely looking for help with this,

Jim Rodgers
Aug 17 '07 #4
Classic ASP is not being developed any further. The fact that a product for debugging exists at all is amazing.

VWD Express is not likely to give you what you want your way. I believe Add-ons are only an option for Visual Studio, not the
Express versions.
http://blogs.msdn.com/mikhailarkhipo...26/647516.aspx

Aug 17 '07 #5
"Mark J. McGinty" wrote:
>
As I understand it, there is, somewhere, a set of instructions
that will show me how to set-up and use VWD for debugging
Classic ASP with VBScript.

So, can anyone tell me how to open my files in VWD can
proceed to debug them?

Sincerely looking for help with this,
Did you read my first post? If you perform the reality check I described,
and VWD is capable of debugging script (because that's exactly what classic
ASP is: script) it should show up as an option, in a list of installed
debugging applications that you can choose from.

If VWD does show in the list, you'll only need a little config, and to
figure out how to make VWD attach to ASP's script host process. (Usually a
Process menu item, that opens a dialog.) From there, set some break points
and you're in.

If VWD is incapable of debugging classic ASP, does that mean you will simply
forgo use of a real, source-level debugging environment entirely, and revert
to Response.Write and the browser? Suit yourself, but you've gotta know
they don't even compare.
I understand. I never had as much script to debug as I do now.
I always got along fine using Response.Write, etc., ...and I have
recently developed a lot of technique based on that. As a matter
of fact, I really learned a lot about ASP and IIS this way. Some
of my crazy adhoc debug tools led to techniques I use in product
code.

However, enough is enough.

...If you've got VS6, install Interdev; if you've got VS 2003 or VS 2005,
script debugging is integral to the IDEs.

Personally I consider the ability to debug ASP code to be a requirement, it
has saved me hours upon countless hours. Further, some problems are
virtually impossible to fully understand by dumping values to the browser;
using a real debugger is the only way to debug that shows you everything at
once, without leaving you to make assumptions about which branches executed
and which variables contained what.
As I am planning to wrap-up much of my script into DLLs, I
will be hurting if I cannot stop and examine objects.

...You say you're familiar with VB6 debugging?
You'll be right at home, not much new to learn, only a few extra details
needed to make it happen.
-Mark
Thanks, Mark.

Cheers,

Jim Rodgers
Aug 17 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2940
by: olav_net | last post by:
Hi I am a .NET developer, but "have to" work with some classic ASP, which I don't know much about. What is the best way to work with it/debug it? I have VS 2003 and 2005 installed, I know VS 6 (with C++), but don't know if I can reinstall it. Other options I know about are Macromedia trial versions.
4
1880
by: pcnerd | last post by:
I've been playing around with VB since version 3. I now have VB6 Learning Edition. I'm thinking about getting VB.NET Express Edition. I have a lot of demo programs for version 3 thru version 6. I realize that the convertor might not be able to convert the source code on the older demos. I would have to open every demo program in version 6 & save it in the VB6 format & then open the source code in VB.NEt & convert to VB.NET. I've read...
13
2436
by: Miro | last post by:
Ok I have been slowely - and ever so slowely teaching myself VB.net Currently I have created an MDB file by code, and added fields to the MDB file by code. I like this solution because, ( im assuming ) if I create an EXE and I load an MDB file, I can see if certain fields are there, and if not add them. Kinda like an Update that is imbeded into the EXE, so you dont always have to create an Install shield.
1
4975
by: paul | last post by:
Hello, does VB .net express edition come with (or be enhanced somehow) to include Crystal reports as does the proper edition? Thanks Paul
1
1481
by: David C | last post by:
I am using Visual Studio 2005 for my .Net web apps. I have some older ASP web apps that I can edit fine in VS 2005 but I can't seem to debug them like I can with my ASP.Net pages. Can anyone point me to steps I need to take to be able to debug classic ASP (VBScript) pages in VS 2005? Thanks. David
4
2323
by: Waldy | last post by:
Hi there, I have spent the last three days trying to get b&st&rd Visual Interdev debugging again but to no avail. I also have VS 2003 and 2005 installed. Should I be able to use either of those to debug .ASP projects? I did try but the breakpoints are ignored like they are in VI.
4
12697
by: =?Utf-8?B?TWlrZSBHYWxl?= | last post by:
VS 2008 initially didn't debug classic ASP. SP1 fixes this in some ways. You can debug if you select the debug option to "Start Without Debugging, then either attach the debugger manually or place a stop directive in the code which ends up doing the same thing. The problem with this is that you can't debug browser side Javascript in the same debug run. You get a "The breakpoint will not currently be hit. The document is not loaded." if...
3
2993
parshupooja
by: parshupooja | last post by:
Hey All, I am doing Classsic ASP after 10 yrs so....finding it very hard & outdated. So need some help..... I am looking for Classic ASP Calender & later on i want to bind some data to it as well? Any Idea where should I look or wat shd I use? Also what should I use to be able to debug classic asp, tried configuring in VS 2008 but it crashes completely. Micrsoft says its a bug which will be fixed in VS 2010. Please...
1
3506
by: andwan0 | last post by:
I have a legacy classic ASP website with lots of classic AJAX (many ASP files specially made for processing AJAX requests). We are slowly migrating the website to ASP.NET 2.0 and developing under Visual Web Developer 2005/2008. I notice VWD doesn't debug ASP files. Since we are still migrating a very large website, we are mixing ASP.NET code with classic ASP (ASP.NET pages making AJAX calls to classic ASP pages). In Visual Studio 2003.NET...
1
2830
by: Dhanraj Gopal | last post by:
I need to debug the classic ASP Pages and my application running on windows xp professional with IIS version 5.0
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8774
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9447
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9181
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.