ToRelease<ICorDebugStepper2> pStepper2;
IfFailRet(pStepper->QueryInterface(IID_ICorDebugStepper2, (LPVOID *)&pStepper2));
- IfFailRet(pStepper2->SetJMC(Debugger::IsJustMyCode()));
+ IfFailRet(pStepper2->SetJMC(IsJustMyCode()));
if (stepType == STEP_OUT)
{
{
if (args.at(0) == "just-my-code")
{
- Debugger::SetJustMyCode(args.at(1) == "1");
+ m_debugger->SetJustMyCode(args.at(1) == "1");
}
}
return S_OK;
ICorDebug *m_pDebug;
ICorDebugProcess *m_pProcess;
- static bool m_justMyCode;
+ bool m_justMyCode;
std::mutex m_startupMutex;
std::condition_variable m_startupCV;
void Cleanup();
- static HRESULT SetupStep(ICorDebugThread *pThread, StepType stepType);
+ HRESULT SetupStep(ICorDebugThread *pThread, StepType stepType);
HRESULT GetStackVariables(uint64_t frameId, ICorDebugThread *pThread, ICorDebugFrame *pFrame, int start, int count, std::vector<Variable> &variables);
HRESULT GetChildren(VariableReference &ref, ICorDebugThread *pThread, ICorDebugFrame *pFrame, int start, int count, std::vector<Variable> &variables);
HRESULT RunClassConstructor(ICorDebugThread *pThread, ICorDebugValue *pValue);
public:
- static bool IsJustMyCode() { return m_justMyCode; }
- static void SetJustMyCode(bool enable) { m_justMyCode = enable; }
-
Debugger();
~Debugger();
+ bool IsJustMyCode() { return m_justMyCode; }
+ void SetJustMyCode(bool enable) { m_justMyCode = enable; }
+
void TryResolveBreakpointsForModule(ICorDebugModule *pModule);
void SetProtocol(Protocol *protocol) { m_protocol = protocol; }
const bool no_source = Status == S_FALSE;
- if (Debugger::IsJustMyCode() && no_source)
+ if (m_debugger->IsJustMyCode() && no_source)
{
- Debugger::SetupStep(pThread, Debugger::STEP_OVER);
+ m_debugger->SetupStep(pThread, Debugger::STEP_OVER);
pAppDomain->Continue(0);
}
else
/* [in] */ ICorDebugMDA *pMDA) { HandleEvent(pController, "MDANotification"); return S_OK; }
};
-bool Debugger::m_justMyCode = true;
-
Debugger::Debugger() :
m_managedCallback(new ManagedCallback()),
m_pDebug(nullptr),
m_pProcess(nullptr),
+ m_justMyCode(true),
m_startupReady(false),
m_startupResult(S_OK),
m_unregisterToken(nullptr),