How to Debug Mscorlib.dll in Visual Studio 2015

xdrnc

I could do reverse engineer of other custom dlls (my own created .net assemblies) successfully but I couldn't do it on mscorlib.dll with the same steps.

I have tried to generate pdb of mscorlib.dll using jetbrains dotpeek.

My visual studio debugging option has been set to the folder containing that pdb.

I tried to put the mscorlib.ini file to set the code Optimization to No, like this:

[.NET Framework Debugging Control]  
GenerateTrackingInfo=1  
AllowOptimize=0 

and put the file on the same location where the temporary dll is loaded (e.g.

C:\Windows\Microsoft.NET\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089).

When I attach my VS to a process, I could see that the Optimized value is still 'Yes' in Visual Studio's Modules.

Appreciate if anyone can guide me the step by step instructions on how to debug the mscorlib.dll when attaching VS to a process using mscorlib.dll.

Thanks.

Tereza Tomcova

mscorlib.dll is ngen'd. You'll also need to set COMPLUS_ZapDisable environment variable to prevent CLR from loading ngen'd assemblies:

set COMPLUS_ZapDisable=1

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to debug javascript in visual studio 2015 RC?

How to debug a dll using Visual Studio?

How to debug a Visual Studio Package in a VSIX created in Visual Studio 2015

Visual Studio 2015 - How to stop EntryPointNotFoundException when starting to debug an app?

How can I debug dtsx in visual studio 2015?

Where are NDEBUG and _DEBUG Defined in Visual Studio 2015?

Disable Visual Studio 2015 extra debug option

Visual Studio 2015 intellisense not appearing during debug

Visual Studio 2015 Remote Azure Debug

Visual Studio 2015 - Debug with HTTP connection problems

Debug Javascript in UWP in Visual Studio 2015

Debug into a remote dll library in visual studio

Visual Studio 2015 locks DLL during debugging

Reference dll without version visual studio 2015

How can I debug stand alone JavaScript files in Visual Studio Community 2015?

How to log variable value changes to a CSV file during debug in Visual Studio 2015 C++ Project?

how to debug python in visual studio

How to update Visual Studio 2015?

How to uninstall Visual Studio 2015

How to use Visual Studio to debug across a C# program calling a C++ dll?

Visual Studio debug C code in the .dll library from C#. How to load symbols on program load

Debug assertion failed visual studio 2015: vector iterator not dereferencable

Visual Studio 2015 not showing Debug Source Files for any solution

Visual Studio 2015 project no longer runs in debug mode

Where is the "Debug -> Exceptions..." menu in Visual Studio 2015?

Visual Studio 2015 Debug doesn't work in multithread application

Visual Studio 2015 - Opening two projects in debug mode

Unable to debug Android c++ app on device (Visual Studio 2015)

Visual Studio 2015 Tries to Access Optical Drive After Debug Finished

TOP Ranking

  1. 1

    Failed to listen on localhost:8000 (reason: Cannot assign requested address)

  2. 2

    How to import an asset in swift using Bundle.main.path() in a react-native native module

  3. 3

    Loopback Error: connect ECONNREFUSED 127.0.0.1:3306 (MAMP)

  4. 4

    pump.io port in URL

  5. 5

    Spring Boot JPA PostgreSQL Web App - Internal Authentication Error

  6. 6

    BigQuery - concatenate ignoring NULL

  7. 7

    ngClass error (Can't bind ngClass since it isn't a known property of div) in Angular 11.0.3

  8. 8

    Do Idle Snowflake Connections Use Cloud Services Credits?

  9. 9

    maven-jaxb2-plugin cannot generate classes due to two declarations cause a collision in ObjectFactory class

  10. 10

    Compiler error CS0246 (type or namespace not found) on using Ninject in ASP.NET vNext

  11. 11

    Can't pre-populate phone number and message body in SMS link on iPhones when SMS app is not running in the background

  12. 12

    Generate random UUIDv4 with Elm

  13. 13

    Jquery different data trapped from direct mousedown event and simulation via $(this).trigger('mousedown');

  14. 14

    Is it possible to Redo commits removed by GitHub Desktop's Undo on a Mac?

  15. 15

    flutter: dropdown item programmatically unselect problem

  16. 16

    Change dd-mm-yyyy date format of dataframe date column to yyyy-mm-dd

  17. 17

    EXCEL: Find sum of values in one column with criteria from other column

  18. 18

    Pandas - check if dataframe has negative value in any column

  19. 19

    How to use merge windows unallocated space into Ubuntu using GParted?

  20. 20

    Make a B+ Tree concurrent thread safe

  21. 21

    ggplotly no applicable method for 'plotly_build' applied to an object of class "NULL" if statements

HotTag

Archive