locked
How to debug .net api code ? RRS feed

  • Question

  • User264732274 posted

    when we work with dotnet API then we just call but can not debug. so i like to know it it possible now to debug .net code ?

    i am using VS2013 IDE.

    Thursday, September 22, 2016 9:37 AM

Answers

  • User283571144 posted

    Hi sudip_inn,

    sudip_inn

    when we work with dotnet API then we just call but can not debug. so i like to know it it possible now to debug .net code ?

    As far as I know, the most recent version of Visual Studio(2015) provides new features for .NET Framework debugging. 

    To debug .NET Framework source, you must have access to debugging symbols for the code.

    You also need to enable stepping into .NET Framework source.

    From MSDN

    To enable .NET Framework source debugging, you could refer to follow steps

    1. On the Tools menu, click Options.

    2. In the Options dialog box, click the Debugging category.

    3. In the General box, set Enable .NET Framework source stepping.

      1. If you had Just My Code enabled, a warning dialog box tells you that Just My Code is now disabled. Click OK.

      2. If you did not have a symbol cache location set, another warning dialog box tells you that a default symbol cache location is now set. ClickOK.

    4. Under the Debugging category, click Symbols.

    5. If you want to change the symbols cache location:

      1. Open the Debugging node in the box on the left.

      2. Under the Debugging node, click Symbols.

      3. Edit the location in Cache symbols from symbol servers to this directory or click Browse to choose a location.

    6. If you want to download symbols immediately, click Load Symbols using above locations.

      This button is not available in design mode.

      If you do not choose to download symbols now, symbols will be downloaded automatically the next time that you start the debugging your program.

    7. Click OK to close the Options dialog box.

    More details, you could refer to follow link:

    https://msdn.microsoft.com/en-us/library/cc667410.aspx

    Best Regards,

    Brando

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, September 22, 2016 12:11 PM