A local fork of blink.natvis for chromium.
You can download the natvis file, or clone the repository, and place it in one of the Natvis file locations.
If you want to save it in your "Documents" directory, be aware that your "Documents" directory may be redirected to other directory than "%USERPROFILE%\Documents", such as the one in OneDrive. PowerShell can find it by the following command:
cd ([Environment]::GetFolderPath('MyDocuments'))
cd "Visual Studio 2019"
cd Visualizers
Download blink.natvis
from
here
and save to one of the Natvis file locations.
cd ..
ren Visualizers Visualizers.bak
git clone https://github.com/kojiishi/chromium-natvis.git Visualizers
Often .natvis files built into PDB files win over your local files. You can't update .natvis files that are embedded in .pdb files while you're debugging.
If you prefer to remove .natvis files from PDB files,
you can comment out the .natvis files in BUILD.gn
.
See DebugVisualizers/README.
If you change BUILD.gn
in your repo,
you may also want to avoid checking in the change.
The following command can avoid checking in the changes to BUILD.gn
.
git update-index --skip-worktree tools/win/DebugVisualizers/BUILD.gn
Confirm it's skipped:
git ls-files -v | grep ^S
When you want to revert it back to the original state:
git update-index --no-skip-worktree tools/win/DebugVisualizers/BUILD.gn
You may prefer --assume-unchanged
instead of --skip-worktree
,
depending on your work style.