Skip to main content

HCTracePlatformWriteMessageToDebuggerCallback

Platform hook that writes a formatted libHttpClient trace message to the debugger.

Syntax

Parameters

The header declares these parameters without names. This page uses descriptive labels. areaName
Type: char const*
Name of the trace area that produced the message. level
Type: HCTraceLevel
Trace level of the message. message
Type: char const*
Formatted message, including the thread ID, level, time, and area prefix and a trailing line break. context
Type: void*
The writeToDebuggerContext value that was passed to HCTraceSetPlatformCallbacks.

Return value

Type: void

Remarks

Set this callback by calling HCTraceSetPlatformCallbacks before you initialize libHttpClient. libHttpClient calls the callback only when debugger output is turned on by HCTraceSetTraceToDebugger.
The XBOX Game Development Kit (GDK) builds of libHttpClient for Windows PC and XBOX consoles don’t call this callback. They write debugger output with OutputDebugStringA instead. Only libHttpClient builds that use the generic platform tracing implementation call this hook.

Requirements

Header: trace.h Library: libHttpClient.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

trace
HCTraceSetPlatformCallbacks
HCTracePlatformThisThreadIdCallback
HCTraceSetTraceToDebugger
Last modified on October 30, 2026