xtd 0.2.0
Loading...
Searching...
No Matches
debugger.h
Go to the documentation of this file.
1
4#pragma once
5#include <cstdint>
6#include <cstdlib>
7#include "../core_export.h"
8#include "../static.h"
9#include "../ustring.h"
10
11#define __XTD_CORE_INTERNAL__
12#include "../internal/__xtd_debugbreak.h"
13#undef __XTD_CORE_INTERNAL__
14
16namespace xtd {
18 namespace diagnostics {
33 public:
35
39 static bool is_attached();
40
48 static void debug_break();
49
52 static bool is_logging();
53
58 static bool launch();
59
66 static void log(int32 level, const xtd::ustring& category, const xtd::ustring& message);
68 };
69 }
70}
Enables communication with a debugger. This class cannot be inherited.
Definition debugger.h:32
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 void log(int32 level, const xtd::ustring &category, const xtd::ustring &message)
Posts a message for the attached debugger.
static bool launch()
Launches and attaches a debugger to the process.
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
#define core_export_
Define shared library export.
Definition core_export.h:13
int_least32_t int32
Represents a 32-bit signed integer.
Definition types.h:131
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10