Bloqueado debug C# managed and unmanged code

  • sábado, 2 de junho de 2012 03:13
     
     
    When I was working with C#.net 2008 for applications, I was able to step into code that was generated by the .net framework.  
    For the C#.net 2010 application I am working with, I would like to be able to step into the code generated from the visual studio.net ide
     
    Thus can you tell me how to setup my environment so I can step into both the code I write and the code gnerated by vs 2010?

Todas as Respostas

  • sábado, 2 de junho de 2012 17:37
     
     

    Could you give more details (a sample) about the generated code that you want to watch?

    During debugging, the microprocessor instructions can be observed in Debug -> Windows -> Disassembly window.

  • domingo, 3 de junho de 2012 02:22
     
     
    I am using linq to sql obejcts connect to the dagtabase. There is a dbml datacontext object created. The various objects are defined in code and the object is instantiated. How can I step through that code?
  • segunda-feira, 4 de junho de 2012 12:23
    Moderador
     
     

    Hi,

    In VS2010, I think we can still step into the VS generated codes just like VS2008 does.  Do you encouner any issues when doing so?

    Good day!

    Thanks


    Michael Sun [MSFT]
    MSDN Community Support | Feedback to us

  • segunda-feira, 4 de junho de 2012 14:46
    Moderador
     
     

    Yes you can still step into the .NET source provided you've enabled the options in the debugger settings and you've configured the source correctly.  However you can only do so if the .NET reference sources have been published and, in my opinion, the v4 CLR source hasn't been kept up to date like previous versions.  Additionally not all the CLR source has been published so it depends upon what code you are trying to step into.

    The steps to set up .NET reference source stepping is given here: http://referencesource.microsoft.com/

    Michael Taylor - 6/4/2012
    http://msmvps.com/blogs/p3net

  • sexta-feira, 8 de junho de 2012 13:16
     
     
    I am working with a visual studio.net 2010 application. Your link points a visual studio.net 2012 application. Thus is there a way to accomplish my goal using visual studio.net 2010?
  • sexta-feira, 8 de junho de 2012 13:52
    Moderador
     
     Respondido

    The VS link that is on the Reference source points to the VS site page.  The steps haven't changed though.  Here's the link to the steps given for VS2008 on that same site: http://referencesource.microsoft.com/serversetup.aspx.  The additional steps needed for VS2010 (which added formal support) is documented here: http://msdn.microsoft.com/en-us/library/cc667410.aspx

    Michael Taylor - 6/8/2012
    http://msmvps.com/blogs/p3net

    • Marcado como Resposta midnight_car domingo, 10 de junho de 2012 04:29
    •