Skip to content

Structure declared in natvis file template doesn't seem to match current structure of basic_json<> #4438

@ghassanpl

Description

@ghassanpl

Description

The natvis template, and by extension the generated natvis file, contain stuff like:

<DisplayString Condition="m_type == nlohmann::detail::value_t::object">{*(m_value.object)}</DisplayString>

while basic_json stores both m_type and m_value in the m_data field. This obviously makes the natvis file not work.

Reproduction steps

Add the natvis file to your project and try to introspect any json value in the debugger.

Expected vs. actual results

Introspection based on natvis file is not used.

Minimal code example

No response

Error messages

No response

Compiler and operating system

Visual Studio 2022 Community Version 17.12.0 Preview 1.0, Windows 10

Library version

3.11.3

Validation

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugsolution: proposed fixa fix for the issue has been proposed and waits for confirmation

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions