Enables communication with a debugger.
◆ xtd_diagnostics_debugger_debug_break()
void xtd_diagnostics_debugger_debug_break |
( |
| ) |
|
Signals a breakpoint to an attached debugger.
- Library
- xtdc.core
- Examples
- The following code example demonstrates how to stop the debugger at the call to write_line.
◆ xtd_diagnostics_debugger_is_attached()
bool xtd_diagnostics_debugger_is_attached |
( |
| ) |
|
Gets a value that indicates whether a debugger is attached to the process.
- Returns
- true if a debugger is attached; otherwise, false.
- Library
- xtdc.core
◆ xtd_diagnostics_debugger_is_logging()
bool xtd_diagnostics_debugger_is_logging |
( |
| ) |
|
Checks to see if logging is enabled by an attached debugger.
- Returns
- true if a debugger is attached and logging is enabled; otherwise, false.
- Library
- xtdc.core
◆ xtd_diagnostics_debugger_launch()
bool xtd_diagnostics_debugger_launch |
( |
| ) |
|
Launches and attaches a debugger to the process.
- Returns
- true if the startup is successful or if the debugger is already attached; otherwise, false.
- Library
- xtdc.core
◆ xtd_diagnostics_debugger_log()
void xtd_diagnostics_debugger_log |
( |
int32_t |
level, |
|
|
const char * |
category, |
|
|
const char * |
message |
|
) |
| |
Posts a message for the attached debugger.
- Parameters
-
level | A description of the importance of the message. |
category | The category of the message. |
message | The message to show. |
- Library
- xtdc.core
- Note
- The category parameter is limited to 256 characters. std::string longer than 256 characters are truncated.