Room cleaning when testing software

I want to learn exactly how my code works when using other libraries for which I have no code. Although I can do this on the Internet (i.e. using FileMon, RegMon, and TCPView from SysInternals), I was wondering if there is a good stand-alone method that would allow me to run my code on a virtual machine, turn off the virtual machine, and share the entire VM Image ?

+3
source share
2 answers

Since permanent changes in the system are either in the file system located in the registry, you may have a small program that lists all the files on the hard drive and also deletes the registry.
Then you can also do this after running the program and perform a simple diff. If you are using virtual boxing, I think you can install the disk image offline (i.e. the virtual machine is not working). However, dumping the registry from offline files can be more difficult. See "Mount vdi" on Google.

+5
source

, , , , , , , -. , , . , . , . , ? , ?

, . : -, . , , ? . - .

+5

Source: https://habr.com/ru/post/1723455/