Skip to content

Commit c5f0b92

Browse files
committed
Adding websocket_client to debugger visualizer, fixing a few other visualizer issues.
1 parent 9de742d commit c5f0b92

File tree

1 file changed

+78
-39
lines changed

1 file changed

+78
-39
lines changed

Release/nuget/cpprest.natvis

Lines changed: 78 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,59 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
33

4-
<Type Name="web::http::details::_uri_components">
4+
<Type Name="web::details::uri_components">
55
<Expand>
6-
<Item Name="scheme">m_scheme</Item>
7-
<Item Name="host">m_host</Item>
8-
<Item Name="port">m_port</Item>
9-
<Item Name="user info">m_user_info</Item>
10-
<Item Name="path">m_path</Item>
11-
<Item Name="query">m_query</Item>
12-
<Item Name="fragment">m_fragment</Item>
13-
</Expand>
6+
<Item Name="scheme">m_scheme</Item>
7+
<Item Name="host">m_host</Item>
8+
<Item Name="port">m_port</Item>
9+
<Item Name="user info">m_user_info</Item>
10+
<Item Name="path">m_path</Item>
11+
<Item Name="query">m_query</Item>
12+
<Item Name="fragment">m_fragment</Item>
13+
</Expand>
1414
</Type>
1515

16-
<Type Name="web::http::uri">
16+
<Type Name="web::uri">
1717
<DisplayString>{m_uri}</DisplayString>
18-
<Expand>
19-
<ExpandedItem>m_components</ExpandedItem>
20-
</Expand>
18+
<Expand>
19+
<ExpandedItem>m_components</ExpandedItem>
20+
</Expand>
2121
</Type>
2222

23-
<Type Name="web::http::uri_builder">
24-
<Expand>
25-
<ExpandedItem>m_uri</ExpandedItem>
26-
</Expand>
23+
<Type Name="web::uri_builder">
24+
<Expand>
25+
<ExpandedItem>m_uri</ExpandedItem>
26+
</Expand>
2727
</Type>
2828

29-
<Type Name="web::http::client::credentials">
30-
<DisplayString>{m_username}, {m_password}</DisplayString>
31-
<Expand>
32-
<Item Name="username">m_username</Item>
33-
<Item Name="password">m_password</Item>
34-
</Expand>
29+
<Type Name="web::credentials">
30+
<DisplayString>{m_username}</DisplayString>
31+
<Expand>
32+
<Item Name="username">m_username</Item>
33+
</Expand>
3534
</Type>
3635

37-
<Type Name="web::http::client::web_proxy">
38-
<DisplayString Condition="m_mode==web::http::client::web_proxy::use_default">{"default"}</DisplayString>
39-
<DisplayString Condition="m_mode==web::http::client::web_proxy::disabled">{"disabled"}</DisplayString>
40-
<DisplayString Condition="m_mode==web::http::client::web_proxy::use_auto_discovery">{"auto discovery"}</DisplayString>
41-
<DisplayString Condition="m_mode==web::http::client::web_proxy::user_provided_">{m_address}</DisplayString>
42-
<Expand>
43-
<Item Name="mode" Condition="m_mode==web::http::client::web_proxy::use_default">"default"</Item>
44-
<Item Name="mode" Condition="m_mode==web::http::client::web_proxy::disabled">"disabled"</Item>
45-
<Item Name="mode" Condition="m_mode==web::http::client::web_proxy::use_auto_discovery">"auto discovery"</Item>
46-
<Item Name="mode" Condition="m_mode==web::http::client::web_proxy::user_provided_">m_address</Item>
47-
<Item Name="credentials" Condition="m_credentials.m_is_set==true">m_credentials</Item>
48-
</Expand>
36+
<Type Name="web::web_proxy">
37+
<DisplayString Condition="m_mode==web::web_proxy::use_default">{"default"}</DisplayString>
38+
<DisplayString Condition="m_mode==web::web_proxy::disabled">{"disabled"}</DisplayString>
39+
<DisplayString Condition="m_mode==web::web_proxy::use_auto_discovery">{"auto discovery"}</DisplayString>
40+
<DisplayString Condition="m_mode==web::web_proxy::user_provided_">{m_address}</DisplayString>
41+
<Expand>
42+
<Item Name="mode" Condition="m_mode==web::web_proxy::use_default">"default"</Item>
43+
<Item Name="mode" Condition="m_mode==web::web_proxy::disabled">"disabled"</Item>
44+
<Item Name="mode" Condition="m_mode==web::web_proxy::use_auto_discovery">"auto discovery"</Item>
45+
<Item Name="mode" Condition="m_mode==web::web_proxy::user_provided_">m_address</Item>
46+
<Item Name="credentials" Condition="m_credentials.m_is_set==true">m_credentials</Item>
47+
</Expand>
4948
</Type>
5049

5150
<Type Name="web::http::client::http_client_config">
5251
<Expand>
53-
<Item Name="proxy">m_proxy</Item>
54-
<Item Name="credentials" Condition="m_credentials.m_is_set==true">m_credentials</Item>
52+
<Item Name="proxy">m_proxy</Item>
53+
<Item Name="credentials" Condition="m_credentials.m_is_set==true">m_credentials</Item>
5554
<Item Name="timeout">m_timeout._MyRep</Item>
56-
<Item Name="guarantee order">m_guarantee_order</Item>
57-
<Item Name="chunk size">m_chunksize</Item>
55+
<Item Name="guarantee order">m_guarantee_order</Item>
56+
<Item Name="chunk size">m_chunksize</Item>
5857
</Expand>
5958
</Type>
6059

@@ -83,6 +82,46 @@
8382
<Item Name="headers">((*((web::http::details::http_msg_base*)(&amp;(*((web::http::details::_http_request*)((_m_impl)._Ptr)))))).m_headers).m_headers</Item>
8483
</Expand>
8584
</Type>
85+
86+
<Type Name="web::websockets::client::websocket_client_config">
87+
<Expand>
88+
<Item Name="proxy">m_proxy</Item>
89+
<Item Name="credentials" Condition="m_credentials.m_is_set==true">m_credentials</Item>
90+
<Item Name="request headers">m_headers</Item>
91+
</Expand>
92+
</Type>
93+
94+
<Type Name="web::websockets::client::websocket_client">
95+
<DisplayString>{m_client._Ptr->m_uri}</DisplayString>
96+
<Expand>
97+
<Item Name="uri">m_client._Ptr->m_uri</Item>
98+
<Item Name="config">m_client._Ptr->m_config</Item>
99+
</Expand>
100+
</Type>
101+
102+
<Type Name="web::websockets::client::websocket_outgoing_message">
103+
<Expand>
104+
<Item Name="message type" Condition="_m_impl._Ptr->m_msg_type==web::websockets::client::websocket_message_type::text_message">text"</Item>
105+
<Item Name="message type" Condition="_m_impl._Ptr->m_msg_type==web::websockets::client::websocket_message_type::binary_message">"binary"</Item>
106+
<Item Name="message type" Condition="_m_impl._Ptr->m_msg_type==web::websockets::client::websocket_message_type::close">"close"</Item>
107+
<Item Name="message type" Condition="_m_impl._Ptr->m_msg_type==web::websockets::client::websocket_message_type::ping">"ping"</Item>
108+
<Item Name="message type" Condition="_m_impl._Ptr->m_msg_type==web::websockets::client::websocket_message_type::pong">"pong"</Item>
109+
<Item Name="length">_m_impl._Ptr->m_length</Item>
110+
<Item Name="body">m_body</Item>
111+
</Expand>
112+
</Type>
113+
114+
<Type Name="web::websockets::client::websocket_incoming_message">
115+
<Expand>
116+
<Item Name="message type" Condition="_m_impl._Ptr->m_msg_type==web::websockets::client::websocket_message_type::text_message">"text"</Item>
117+
<Item Name="message type" Condition="_m_impl._Ptr->m_msg_type==web::websockets::client::websocket_message_type::binary_message">"binary"</Item>
118+
<Item Name="message type" Condition="_m_impl._Ptr->m_msg_type==web::websockets::client::websocket_message_type::close">"close"</Item>
119+
<Item Name="message type" Condition="_m_impl._Ptr->m_msg_type==web::websockets::client::websocket_message_type::ping">"ping"</Item>
120+
<Item Name="message type" Condition="_m_impl._Ptr->m_msg_type==web::websockets::client::websocket_message_type::pong">"pong"</Item>
121+
<Item Name="length">_m_impl._Ptr->m_length</Item>
122+
<Item Name="body">m_body</Item>
123+
</Expand>
124+
</Type>
86125

87126
<Type Name="web::json::number">
88127
<DisplayString Condition="(m_type==type::signed_type)">

0 commit comments

Comments
 (0)