Hello,

I recently landed a patch[1] that added a Gecko.natvis file[2] to the tree. 
natvis files[3] are Microsoft's current way of providing nicer views of data 
types for their debuggers. The file as-landed was written by Vlad a few years 
ago so it could definitely use some changes (there's a followup bug[4] for that 
work). If you debug Firefox in MSVC regularly and there are Gecko data types 
that you find annoying to inspect you should take a look, and submit fixes for 
things it doesn't already cover! There's also a followup bug[5] to embed the 
natvis files that the Rust compiler ships so we can get nicer views of data 
types from the Rust standard library.

And in case you're wondering--there are already GDB pretty-printers for Gecko 
types in the tree[6][7], feel free to use and improve those as well!

-Ted

1. https://bugzilla.mozilla.org/show_bug.cgi?id=1408502
2. 
https://hg.mozilla.org/mozilla-central/file/856384fbc255/toolkit/library/gecko.natvis
3. 
https://docs.microsoft.com/en-us/visualstudio/debugger/create-custom-views-of-native-objects
4. https://bugzilla.mozilla.org/show_bug.cgi?id=1459989
5. https://bugzilla.mozilla.org/show_bug.cgi?id=1459991
6. https://hg.mozilla.org/mozilla-central/file/tip/.gdbinit
7. 
https://hg.mozilla.org/mozilla-central/file/tip/third_party/python/gdbpp/gdbpp
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to