#include <debugger.h>
Enables communication with a debugger. This class cannot be inherited.
- Namespace
- xtd::diagnostics
- Library
- xtd.core
Inherits xtd::static_object.
|
static void | debug_break () |
| Signals a breakpoint to an attached debugger.
|
|
static bool | is_attached () |
| Gets a value that indicates whether a debugger is attached to the process.
|
|
static bool | is_logging () |
| Checks to see if logging is enabled by an attached debugger.
|
|
static bool | launch () |
| Launches and attaches a debugger to the process.
|
|
static void | log (int level, xtd::ustring &category, const xtd::ustring &message) |
| Posts a message for the attached debugger.
|
|
◆ debug_break()
static void xtd::diagnostics::debugger::debug_break |
( |
| ) |
|
|
static |
Signals a breakpoint to an attached debugger.
- Examples
- The following code example demonstrates how to stop the debugger at the call to write_line.
debugger_break_();
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
◆ is_attached()
static bool xtd::diagnostics::debugger::is_attached |
( |
| ) |
|
|
static |
Gets a value that indicates whether a debugger is attached to the process.
- Returns
- true if a debugger is attached; otherwise, false.
◆ is_logging()
static bool xtd::diagnostics::debugger::is_logging |
( |
| ) |
|
|
static |
Checks to see if logging is enabled by an attached debugger.
- Returns
- true if a debugger is attached and logging is enabled; otherwise, false.
◆ launch()
static bool xtd::diagnostics::debugger::launch |
( |
| ) |
|
|
static |
Launches and attaches a debugger to the process.
- Returns
- true if the startup is successful or if the debugger is already attached; otherwise, false.
◆ log()
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. |
- Note
- The category parameter is limited to 256 characters. std::string longer than 256 characters are truncated.
The documentation for this class was generated from the following file: