Is it possible to debug the framework code?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marc

    Is it possible to debug the framework code?

    Hi, I am relatively new to ASP.NET and I am experimenting with some code and
    exercises.

    My question: Say I have some stacktrace because I have some error.

    [NotSupportedExc eption: Specified method is not supported.]
    System.Web.UI.D ataSourceView.E xecuteDelete(ID ictionary keys, IDictionary
    oldValues) +28
    System.Web.UI.D ataSourceView.D elete(IDictiona ry keys, IDictionary
    oldValues, DataSourceViewO perationCallbac k callback) +75
    System.Web.UI.W ebControls.Grid View.HandleDele te(GridViewRow row, Int32
    rowIndex) +927
    System.Web.UI.W ebControls.Grid View.HandleEven t(EventArgs e, Boolean
    causesValidatio n, String validationGroup ) +1134
    System.Web.UI.W ebControls.Grid View.RaisePostB ackEvent(String
    eventArgument) +199
    System.Web.UI.W ebControls.Grid View.System.Web .UI.IPostBackEv entHandler.Rais ePostBackEvent( String
    eventArgument) +7
    System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
    sourceControl, String eventArgument) +11
    System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +177
    System.Web.UI.P age.ProcessRequ estMain(Boolean
    includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint) +1746


    Can I somehow place a breakpoint in
    'System.Web.UI. DataSourceView. ExecuteDelete' and look at what is happening
    there?

    (Well, I think, probably not since the code for the framework is not shipped
    as far as I can see.)


  • Alexey Smirnov

    #2
    Re: Is it possible to debug the framework code?

    On Aug 18, 5:49 pm, "Marc" <m.wenti...@rem ovethischello.n lwrote:
    Hi, I am relatively new to ASP.NET and I am experimenting with some code and
    exercises.
    >
    My question: Say I have some stacktrace because I have some error.
    >
    [NotSupportedExc eption: Specified method is not supported.]
       System.Web.UI.D ataSourceView.E xecuteDelete(ID ictionary keys, IDictionary
    oldValues) +28
       System.Web.UI.D ataSourceView.D elete(IDictiona ry keys, IDictionary
    oldValues, DataSourceViewO perationCallbac k callback) +75
       System.Web.UI.W ebControls.Grid View.HandleDele te(GridViewRow row, Int32
    rowIndex) +927
       System.Web.UI.W ebControls.Grid View.HandleEven t(EventArgs e, Boolean
    causesValidatio n, String validationGroup ) +1134
       System.Web.UI.W ebControls.Grid View.RaisePostB ackEvent(String
    eventArgument) +199
       System.Web.UI.W ebControls.Grid View.System.Web .UI.IPostBackEv entHandler.Rais ­ePostBackEvent (String
    eventArgument) +7
       System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
    sourceControl, String eventArgument) +11
       System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +177
       System.Web.UI.P age.ProcessRequ estMain(Boolean
    includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint) +1746
    >
    Can I somehow place a breakpoint in
    'System.Web.UI. DataSourceView. ExecuteDelete' and look at what is happening
    there?
    >
    (Well, I think, probably not since the code for the framework is not shipped
    as far as I can see.)
    Hi Marc,

    simply go to MSDN and find that

    1) NotSupportedExc eption happens when the ExecuteDelete operation is
    not supported by the DataSourceView.

    2) The DataSourceView class's default implementation is to throw a
    NotSupportedExc eption exception. If you extend the DataSourceView
    class, override the ExecuteDelete method if your class supports
    deletion from the underlying data storage.

    3) Data-bound controls can determine whether the ExecuteDelete
    operation is supported by a data source control by retrieving the
    DataSourceView object using the DataSourceContr ol..::.GetView method,
    and checking the CanDelete property.



    Hope this helps

    Comment

    • Marc

      #3
      Re: Is it possible to debug the framework code?


      "Alexey Smirnov" <alexey.smirnov @gmail.comwrote
      Hi Marc,
      >
      simply go to MSDN and find that
      ....
      Hope this helps
      Well it helps solving the programming problem I had, but that was not really
      my question. Sorry to see you go to all that trouble for nothing. At this
      moment I am programming with some other tools then C# and ASP.NET and for
      example in Delphi you can see the vcl library code in c:program
      files\borland\d elph\source\vcl and step through it. I wondered if could do
      that with some parts of the .NET framework too.

      Your post does help the coding problem by the way, it was not for nothing,
      but this exception is another problem. I excuse myself for not being clear.

      Marc Wentink


      Comment

      • Alexey Smirnov

        #4
        Re: Is it possible to debug the framework code?

        On Aug 19, 10:16 am, "Marc" <m.wenti...@rem ovethischello.n lwrote:
        "Alexey Smirnov" <alexey.smir... @gmail.comwrote
        >
        Hi Marc,
        >
        simply go to MSDN and find that
        >
        ...
        >
        Hope this helps
        >
        Well it helps solving the programming problem I had, but that was not really
        my question. Sorry to see you go to all that trouble for nothing. At this
        moment I am programming with some other tools then C# and ASP.NET and for
        example in Delphi you can see the vcl library code in c:program
        files\borland\d elph\source\vcl and step through it. I wondered if could do
        that with some parts of the .NET framework too.
        >
        Your post does help the coding problem by the way, it was not for nothing,
        but this exception is another problem. I excuse myself for not being clear.
        >
        Marc Wentink
        Well, I thought you wanted to solve the problem at first :-) You can
        debug .NET and you can also get access to its source code. Please take
        a look at the following references:



        Comment

        • Cubaman

          #5
          Re: Is it possible to debug the framework code?

          On Aug 19, 10:16 am, "Marc" <m.wenti...@rem ovethischello.n lwrote:
          "Alexey Smirnov" <alexey.smir... @gmail.comwrote
          >
          Hi Marc,
          >
          simply go to MSDN and find that
          >
          ...
          >
          Hope this helps
          >
          Well it helps solving the programming problem I had, but that was not really
          my question. Sorry to see you go to all that trouble for nothing. At this
          moment I am programming with some other tools then C# and ASP.NET and for
          example in Delphi you can see the vcl library code in c:program
          files\borland\d elph\source\vcl and step through it. I wondered if could do
          that with some parts of the .NET framework too.
          >
          Your post does help the coding problem by the way, it was not for nothing,
          but this exception is another problem. I excuse myself for not being clear.
          >
          Marc Wentink
          Hello Mark:
          You can see framework's source using tools as Ildasm.exe to see the
          result as IL code, or Reflector http://www.aisto.com/roeder/dotnet/
          wich let you choose the language, including Delphi.Net ;-)

          Comment

          Working...