We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86578a0 commit 27744ccCopy full SHA for 27744cc
src/HAL/Include/nanoHAL_v2.h
@@ -227,6 +227,7 @@ extern "C"
227
// target specific handler for power mode changes (may be empty)
228
void CPU_SetPowerModeTarget(PowerLevel_type powerLevel);
229
bool DebuggerIsConnected();
230
+ bool DebugSessionIsActive();
231
232
#ifdef __cplusplus
233
}
src/HAL/nanoHAL_SystemInformation.cpp
@@ -69,3 +69,10 @@ bool DebuggerIsConnected()
69
{
70
return ((g_CLR_RT_ExecutionEngine.m_iDebugger_Conditions & CLR_RT_ExecutionEngine::c_fDebugger_Enabled) != 0);
71
72
+
73
+bool DebugSessionIsActive()
74
+{
75
+ return (
76
+ (g_CLR_RT_ExecutionEngine.m_iDebugger_Conditions & CLR_RT_ExecutionEngine::c_fDebugger_SourceLevelDebugging) !=
77
+ 0);
78
+}
0 commit comments