Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SaveAllModules command #3138

Open
stephentoub opened this issue Jun 22, 2022 · 0 comments · May be fixed by #5069
Open

Add SaveAllModules command #3138

stephentoub opened this issue Jun 22, 2022 · 0 comments · May be fixed by #5069
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@stephentoub
Copy link
Member

Background and Motivation

sos today provides both the clrmodules command, which enumerates all modules in memory along with their address, and the savemodule command, which accepts a module address and a file path and writes the module out to disk. This is really useful for being able to extract an assembly and save it out for use with other tools, like ILSpy. But this is tedious (or requires separate scripting) to use to extract all modules in order to browse the whole app or service being debugged.

Proposed Feature

!SaveAllModules directory_path

The command will effectively automate getting the list of modules (aka clrmodules) and saving out each to the specified destination directory.

Usage Examples

!SaveAllModules c:\users\myname\Desktop\DebuggingTmp

@stephentoub stephentoub added the enhancement New feature or request label Jun 22, 2022
@mikem8361 mikem8361 self-assigned this Jun 22, 2022
@tommcdon tommcdon modified the milestones: 8.0.0, Future Sep 12, 2022
@kevingosse kevingosse linked a pull request Nov 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants