469,285 Members | 2,605 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,285 developers. It's quick & easy.

Debigging global.asa in VS 2005

I am trying to set up a classic ASP project in Visual Studio 2005, and
I am unsire of how to debug the global.asa file (I can debug a classic
ASP file, though.):

1) Set a breakpoint on any ASP code line and run the debugger
2) In Visual Studio 2005, Select Debug --> Attach to process...
3) Click the Select.. button in the Attach To section
4) Highlight the inetinfo.exe process from the list and click Attach

I can stop on a breakpoint in an asp file, but how can on stop on a
breakpoint in global.asa? If you have to start the application first
and then attach to the process, aren't I already past global.asa?

If anyone has any insight, that would be great.

Christian

Apr 19 '06 #1
2 2085
ka******@hotmail.com wrote:
I am trying to set up a classic ASP project in Visual Studio 2005, and
I am unsire of how to debug the global.asa file (I can debug a classic
ASP file, though.):

You would probably be better off posting in the .vsnet.debugging group.

Unfortunately, due to the lack of FPSE on our development web server (which
i think is required), I've never been able to attempt debugging classic asp
in VS.Net so I cannot answer your question.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Apr 19 '06 #2

<ka******@hotmail.com> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com...
I am trying to set up a classic ASP project in Visual Studio 2005, and
I am unsire of how to debug the global.asa file (I can debug a classic
ASP file, though.):

1) Set a breakpoint on any ASP code line and run the debugger
2) In Visual Studio 2005, Select Debug --> Attach to process...
3) Click the Select.. button in the Attach To section
4) Highlight the inetinfo.exe process from the list and click Attach

I can stop on a breakpoint in an asp file, but how can on stop on a
breakpoint in global.asa? If you have to start the application first
and then attach to the process, aren't I already past global.asa?

If anyone has any insight, that would be great.
Assuming you're using VBScript you might try inserting the Stop statement on
its own line. (If using JScript, it's debugger; on its own line.) When the
debugger is attached this should generate a debugging break (a sort-of
hard-coded break point) to make the debugger trap into the code.

I'm not certain it's possible to debug global.asa, but if it is, that should
do it.
-Mark
Christian

Apr 20 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Ankit Aneja | last post: by
4 posts views Thread by Mark Olbert | last post: by
5 posts views Thread by Nathan Sokalski | last post: by
4 posts views Thread by Al Santino | last post: by
8 posts views Thread by Rob T | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.