Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
48d7a32d
Commit
48d7a32d
authored
Nov 26, 2017
by
Matthias Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add .natvis for MSVC debug view
parent
5b4855de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
1 deletion
+40
-1
CMakeLists.txt
CMakeLists.txt
+8
-1
src/json.natvis
src/json.natvis
+32
-0
No files found.
CMakeLists.txt
View file @
48d7a32d
...
@@ -35,7 +35,14 @@ target_include_directories(
...
@@ -35,7 +35,14 @@ target_include_directories(
${
NLOHMANN_JSON_TARGET_NAME
}
${
NLOHMANN_JSON_TARGET_NAME
}
INTERFACE $<INSTALL_INTERFACE:include/>
INTERFACE $<INSTALL_INTERFACE:include/>
)
)
target_sources
(
${
NLOHMANN_JSON_TARGET_NAME
}
INTERFACE
$<INSTALL_INTERFACE:include/json.natvis>
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
NLOHMANN_JSON_SOURCE_DIR
}
/json.natvis>
)
##
##
## TESTS
## TESTS
## create and configure the unit test target
## create and configure the unit test target
...
...
src/json.natvis
0 → 100644
View file @
48d7a32d
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer
xmlns=
"http://schemas.microsoft.com/vstudio/debugger/natvis/2010"
>
<Type
Name=
"nlohmann::basic_json<*>"
>
<DisplayString
Condition=
"m_type == nlohmann::detail::value_t::null"
>
null
</DisplayString>
<DisplayString
Condition=
"m_type == nlohmann::detail::value_t::object"
>
{*(m_value.object)}
</DisplayString>
<DisplayString
Condition=
"m_type == nlohmann::detail::value_t::array"
>
{*(m_value.array)}
</DisplayString>
<DisplayString
Condition=
"m_type == nlohmann::detail::value_t::string"
>
{*(m_value.string)}
</DisplayString>
<DisplayString
Condition=
"m_type == nlohmann::detail::value_t::boolean"
>
{m_value.boolean}
</DisplayString>
<DisplayString
Condition=
"m_type == nlohmann::detail::value_t::number_integer"
>
{m_value.number_integer}
</DisplayString>
<DisplayString
Condition=
"m_type == nlohmann::detail::value_t::number_unsigned"
>
{m_value.number_unsigned}
</DisplayString>
<DisplayString
Condition=
"m_type == nlohmann::detail::value_t::number_float"
>
{m_value.number_float}
</DisplayString>
<DisplayString
Condition=
"m_type == nlohmann::detail::value_t::discarded"
>
discarded
</DisplayString>
<Expand>
<ExpandedItem
Condition=
"m_type == nlohmann::detail::value_t::object"
>
*(m_value.object),view(simple)
</ExpandedItem>
<ExpandedItem
Condition=
"m_type == nlohmann::detail::value_t::array"
>
*(m_value.array),view(simple)
</ExpandedItem>
</Expand>
</Type>
<!-- skip the pair first/second members in the treeview while traversing a map.
Only works in VS 2015 Update 2 and beyond using the new visualization -->
<Type
Name=
"std::pair<*, nlohmann::basic_json<*>>"
IncludeView=
"MapHelper"
>
<DisplayString>
{second}
</DisplayString>
<Expand>
<ExpandedItem>
second
</ExpandedItem>
</Expand>
</Type>
</AutoVisualizer>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment