How to get the line number of the code being executed

Last post 11-18-2008 4:19 PM by davidebb. 1 replies.

Sort Posts:

  • How to get the line number of the code being executed

    11-12-2008, 11:36 PM
    • Member
      point Member
    • SheetalP
    • Member since 11-13-2008, 4:15 AM
    • Posts 3

    I am new to Iron Python and .Net Programming. Please help me in this.

     I have to display the line number and the file name of the code written in Iron Python. As per my knowledge Iron Python gives the line number only when an exception occurs.

    Is there any way to get the line number and file name from the stack even if there is no exception ?

     

    Filed under:
  • Re: How to get the line number of the code being executed

    11-18-2008, 4:19 PM
    Answer
    • Contributor
      5,813 point Contributor
    • davidebb
    • Member since 06-11-2002, 8:31 AM
    • Redmond, WA
    • Posts 1,161
    • AspNetTeam

    Please note that this forum is specifically for discussing issues that relate to the use of IronPython in ASP.NET.  For general IronPython issue, please check out the Codeplex site, which explains how to join the discussion list.

    thanks,
    David

Page 1 of 1 (2 items)