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

Disable Visual Studio 2015 extra debug option

Visual Studio 2015 project no longer runs in debug mode

Visual Studio 2015 - Opening two projects in debug mode

Visual Studio 2015 Debug doesn't work in multithread application

Visual Studio 2015 locks DLL during debugging

Visual Studio 2015 not showing Debug Source Files for any solution

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

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

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

Where are NDEBUG and _DEBUG Defined in Visual Studio 2015?

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

Visual Studio 2015 Tries to Access Optical Drive After Debug Finished

WebDriverWait Exception only thrown in Debug Mode in Visual Studio 2015

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

Visual Studio 2015 - Debug with HTTP connection problems

How to debug javascript in visual studio 2015 RC?

Reference dll without version visual studio 2015

Debug Javascript in UWP in Visual Studio 2015

Debug assertion failed visual studio 2015: vector iterator not dereferencable

Visual Studio 2015 intellisense not appearing during debug

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

Visual Studio 2015 Remote Azure Debug

How to update Visual Studio 2015?

How can I debug dtsx in visual studio 2015?

How to uninstall Visual Studio 2015

how to debug python in visual studio

Debug into a remote dll library in visual studio

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

How to debug a dll using Visual Studio?

TOP Ranking

  1. 1

    How can I create a column whose entries depend on the contents of a column in another table?

  2. 2

    pump.io port in URL

  3. 3

    How to display items using sessions

  4. 4

    BigQuery - concatenate ignoring NULL

  5. 5

    no applicable method for 'mutate_' applied to an object of class "c('integer', 'numeric')"

  6. 6

    How i extract text from a model dialog in selenium?

  7. 7

    x no applicable method for 'tbl_vars' applied to an object of class "c('double', 'numeric')"

  8. 8

    AirflowException: Celery command failed - The recorded hostname does not match this instance's hostname

  9. 9

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

  10. 10

    Most efficient regex for checking if a string contains at least 3 alphanumeric characters

  11. 11

    using excel range find return Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH))

  12. 12

    redirect your computer port to url

  13. 13

    Can't create database with Symfony 4.1 : could not find driver

  14. 14

    How to fix "Exception evaluating SpringEL expression" error after submitting a variable Spring/Thymeleaf

  15. 15

    A python function to get the maximum value of a specific column, given a string that represents a table in CSV format

  16. 16

    Double spacing in rmarkdown pdf

  17. 17

    Uploading Files on production server returns either CORS error or POST 400 Bad Request using Apollo-Graphql

  18. 18

    Android Kotlin Unit test failing with io.mockk.MockKException: no answer found for

  19. 19

    Change Model input_shape but got an : ValueError: Input 0 of layer dense_44 is incompatible with the layer

  20. 20

    Formik, Yup - How to check is Decimal number

  21. 21

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

HotTag

Archive