472,133 Members | 1,466 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,133 software developers and data experts.

Better debugging of classic ASP with Visual Studio 2008 SP1

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 you try to both at the same time.
Does anybody here know how to debug the whole application (Browser
Javascript and server side VBScript) in one run of the debugger?
Sep 10 '08 #1
4 12490
Hi Mike,

As for script debugging, class ASP's vbscript debugging is still
server-side debugging. While for the browser -side script(client script)
that's different from server-side classic ASP debugging. You need to follow
the client script debugging settings. Here is a blog entry on scottgu's
blog which mentioned this:

#VS 2008 JavaScript Debugging
http://weblogs.asp.net/scottgu/archi...script-debuggi
ng.aspx

So generally, in visual studio 2008, for client-side script debugging, you
can directly drop breakpoint on client-side script and the debugger can
help you automatically hit it when debugging running.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://support.microsoft.com/select/...tance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: =?Utf-8?B?TWlrZSBHYWxl?= <Mi******@newsgroup.nospam>
Subject: Better debugging of classic ASP with Visual Studio 2008 SP1
Date: Tue, 9 Sep 2008 17:02:13 -0700
>
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 you try to both at the same time.
Does anybody here know how to debug the whole application (Browser
Javascript and server side VBScript) in one run of the debugger?
Sep 10 '08 #2
Hi Steven,

That's not the issue.

I am able to debug JavaScript on the Browser, ASP.NET and ASP. No problem
I'm set up.

The issue I have is that I cannot debug both JavaScript on the browser and
classic ASP on the server, in the same debug session. (With ASPX I can debug
server and browser together.)

I expect there's a setting that enables me to do both together for the
classic ASP case.

I'd like to know what the setting / technique is.

Failing that confirmation that this is not possible would save me spending
any more hours looking for it.

Sep 10 '08 #3
I've just had a message from Mikhail Arkhipov who knows all about this
debugging.

He confirms that both cannot be debugged in the same session. (Though he
suggests a macro may be possible that enables that. I have no plans to write
such a macro myself.)
Sep 10 '08 #4
Thanks for your reply Mike,

Then, that'll be a limitation of the classic ASP debugging. You may need to
separate the client-side and server-side debugging process in your case.

Sincerely,

Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.


--------------------
>From: =?Utf-8?B?TWlrZSBHYWxl?= <Mi******@newsgroup.nospam>
References: <FD**********************************@microsoft.co m>
<jQ**************@TK2MSFTNGHUB02.phx.gbl>
<86**********************************@microsoft.co m>
>Subject: RE: Better debugging of classic ASP with Visual Studio 2008 SP1
Date: Tue, 9 Sep 2008 22:23:01 -0700
>
I've just had a message from Mikhail Arkhipov who knows all about this
debugging.

He confirms that both cannot be debugged in the same session. (Though he
suggests a macro may be possible that enables that. I have no plans to
write
>such a macro myself.)
Sep 15 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Stephanie Stowe | last post: by
5 posts views Thread by Velvet | last post: by
23 posts views Thread by keyser_Soze | last post: by
4 posts views Thread by KevinGPO | last post: by
3 posts views Thread by Lloyd Sheen | last post: by
reply views Thread by leo001 | last post: by

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.