Better debugging of classic ASP with Visual Studio 2008 SP1

M

Mike Gale

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?
 
S

Steven Cheng [MSFT]

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/archive/2007/07/19/vs-2008-javascript-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:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#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/default.aspx?target=assistance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.



--------------------
 
M

Mike Gale

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

Mike Gale

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

Steven Cheng [MSFT]

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:
(e-mail address removed).




--------------------
From: =?Utf-8?B?TWlrZSBHYWxl?= <[email protected]>
References: <[email protected]>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,034
Messages
2,570,356
Members
47,002
Latest member
RobertoLip

Latest Threads

Top