Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > How to debug classic ASP pages during AJAX calls in ASP.NET website

Reply
Thread Tools

How to debug classic ASP pages during AJAX calls in ASP.NET website

 
 
And Wan
Guest
Posts: n/a
 
      08-06-2009
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 it supported full server-side debugging in all ASP
pages. Now, how can I debug the AJAX classic ASP pages? I tried running
Visual Studio 2003.NET and attaching it as a debugger to Internet Explorer,
but no breakpoints were stopped at.

Please can someone help. How can we debug classic ASP pages during AJAX
calls?


 
Reply With Quote
 
 
 
 
Bob Barrows
Guest
Posts: n/a
 
      08-06-2009
And Wan wrote:
> 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 it supported full server-side debugging in
> all ASP pages. Now, how can I debug the AJAX classic ASP pages? I
> tried running Visual Studio 2003.NET and attaching it as a debugger
> to Internet Explorer, but no breakpoints were stopped at.
>
> Please can someone help. How can we debug classic ASP pages during
> AJAX calls?



You might try a vsnet group ...
--
HTH,
Bob Barrows


 
Reply With Quote
 
 
 
 
Gregory A. Beamer
Guest
Posts: n/a
 
      08-07-2009
"And Wan" <> wrote in
news::

> I have a legacy classic ASP website with lots of classic AJAX (many
> ASP files specially made for processing AJAX requests).


Do the ASP pages currently support AJAX, or is this a change? In other
words, is the need to debug legacy pages that currently work the fact you
are switching them to be AJAX handlers?

If so, can the idea. It is a path wrought with many potholes.

> 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).


The best method to migrate to ASP.NET is to take a process at a time and
migrate. I would say page at a time, but ASP processes often span multiple
pages.

Take the time to write out the use cases and tackle them one at a time. If
you have to alter the ASP pages to make things work, you are doing it
wrong.

> In Visual Studio 2003.NET it supported full server-side debugging in
> all ASP pages. Now, how can I debug the AJAX classic ASP pages? I
> tried running Visual Studio 2003.NET and attaching it as a debugger to
> Internet Explorer, but no breakpoints were stopped at.


Not going to happen that way.

But you can have the ASP.NET site calling a "different" site rahter than
mixing. The ASP site can then be debugged in the older tools. yes, it is a
pain, but if you really must have AJAX, then calling the web service/AJAX
bits on another site is not an issue, as long as you put the call location
in the config file so you can update it.

Once again, if you are altering the ASP so it can work with ASP.NET, you
are taking a hard road that I would not advise.


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Reply With Quote
 
bruce barker
Guest
Posts: n/a
 
      08-09-2009
you need vs2008 and sp1. then you attach to the asp worker process
(enable script debugging).

-- bruce (sqlwork.com)

And Wan wrote:
> 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 it supported full server-side debugging in all ASP
> pages. Now, how can I debug the AJAX classic ASP pages? I tried running
> Visual Studio 2003.NET and attaching it as a debugger to Internet Explorer,
> but no breakpoints were stopped at.
>
> Please can someone help. How can we debug classic ASP pages during AJAX
> calls?
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How to debug classic ASP pages during AJAX calls in ASP.NET website And Wan ASP .Net 3 08-09-2009 12:59 AM
AJAX Treeview How to keep expanded nodes expanded during AJAX postback ton ASP .Net 2 12-10-2008 04:11 PM
ASP.NET AJAX Enabled Website Web.config error (newbie to AJAX) Tony K ASP .Net 2 05-04-2007 04:23 AM
LOOP through an ASP form's pages (not ASP.NET - ASP classic) David A. Beck ASP General 10 04-13-2004 05:38 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57