xtd 0.2.0
Loading...
Searching...
No Matches
debugger.hpp
Go to the documentation of this file.
1
4#pragma once
5#include <cstdint>
6#include <cstdlib>
7#include "../core_export.hpp"
8#include "../static.hpp"
9#include "../string.hpp"
10
11#define __XTD_CORE_INTERNAL__
12#include "../internal/__xtd_debugbreak.hpp"
13#undef __XTD_CORE_INTERNAL__
14
16namespace xtd {
18 namespace diagnostics {
35 public:
37
41 static bool is_attached();
42
50 static void debug_break();
51
54 static bool is_logging();
55
60 static bool launch();
61
68 static void log(int32 level, const xtd::string& category, const xtd::string& message);
70 };
71 }
72}
Represents text as a sequence of character units.
Definition basic_string.hpp:79
Enables communication with a debugger. This class cannot be inherited.
Definition debugger.hpp:34
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::string &category, const xtd::string &message)
Posts a message for the attached debugger.
static bool launch()
Launches and attaches a debugger to the process.
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:37
#define core_export_
Define shared library export.
Definition core_export.hpp:13
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10