Debigging global.asa in VS 2005

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kaczmar2@hotmail.com

    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

  • Bob Barrows [MVP]

    #2
    Re: Debigging global.asa in VS 2005

    kaczmar2@hotmai l.com wrote:[color=blue]
    > 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.):
    >[/color]
    You would probably be better off posting in the .vsnet.debuggin g 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"


    Comment

    • Mark J. McGinty

      #3
      Re: Debigging global.asa in VS 2005


      <kaczmar2@hotma il.com> wrote in message
      news:1145474155 .402199.254690@ v46g2000cwv.goo glegroups.com.. .[color=blue]
      >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.[/color]

      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


      [color=blue]
      > Christian
      >[/color]


      Comment

      Working...