Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

#define kDefineDebugHints | ( |  | ) |

The kDefineDebugHints macro can be helpful when attempting to use debug expressions to peek inside kApi class implementations in Visual Studio.

The underlying problem that this macro addresses is that if a structure definition isn't directly used by the particular application or library that is being debugged, then the debugger won't be able to locate it. E.g., if the debug expression "(kXmlClass*)myXmlObject" is used, but the kXmlClass structure isn't directly used by the library that is being debugged (instead, only the kXml handle definition is used), then the debug expression can't be evaluated.

To make use of this feature, select one file in your library or program and include the following lines:

#include <kApi/kApi.h>
kDefineDebugHints()

{.c}