MSVC natvis visualizer does not work after introduction of inline ABI namespace #3696
Closed
2 tasks
Labels
confirmed
kind: bug
platform: visual studio
related to MSVC
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Milestone
Description
#844 added a debugger visualizer for Visual Studio.
#3590 introduced an inline namespace under which the basic_json type now lives.
Therefore the type name pattern in the natvis file
json/nlohmann_json.natvis
Line 3 in 0e61ee8
With the inline namespace regularly changing, it might be worthwhile to dynamically generate the natvis file from CMake using the same "algorithm" for the type name pattern as implemented with the macros in the source code.
Reproduction steps
Create a
nlohmann::json
instance, fill it with some data, and break with Visual Studio debugger to inspect the object instance.Expected vs. actual results
Actual: visualizer not active
Expected: visualizer provides pretty printing
Minimal code example
No response
Error messages
No response
Compiler and operating system
Visual Studio
Library version
3.11.1
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: