> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblHttpCallSetTracing

> XblHttpCallSetTracing

# XblHttpCallSetTracing

启用或禁用对该特定 HTTP 调用的跟踪。

## 语法

```cpp theme={null}
HRESULT XblHttpCallSetTracing(  
         XblHttpCallHandle call,  
         bool traceCall  
)  
```

### 参数

*call*   \_In\_\
类型：[XblHttpCallHandle](/reference/live/xsapi-c/http_call_c/handles/xblhttpcallhandle)

HTTP 调用的句柄。

*traceCall*   \_In\_\
类型：bool

是否跟踪此调用。

### 返回值

类型：HRESULT

此 API 操作的结果代码。可能的值为 S\_OK、E\_INVALIDARG 或 E\_FAIL。

## 备注

默认为 true。

## 要求

**头文件：** http\_call\_c.h

**库：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另请参阅

[http\_call\_c](/reference/live/xsapi-c/http_call_c/http_call_c_members)


## Related topics

- [HCHttpCallSetTracing](/zh-CN/reference/live/httpclient/httpclient/functions/hchttpcallsettracing.md)
- [XblHttpCallRequestSetHeader](/zh-CN/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetheader.md)
- [XblHttpCallRequestSetLongHttpCall](/zh-CN/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetlonghttpcall.md)
- [XblHttpCallRequestSetRetryAllowed](/zh-CN/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetretryallowed.md)
- [XblHttpCallRequestSetRequestBodyBytes](/zh-CN/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetrequestbodybytes.md)
