#pragma warning restore CA1710 // Identifiers should have correct suffix private SolidityDebugger(IDebuggerTransport debuggerTransport, bool useContractsSubDir) { _debuggerTransport = debuggerTransport; DebugAdapter = new MeadowSolidityDebugAdapter(useContractsSubDir); DebugAdapter.OnDebuggerDisconnect += DebugAdapter_OnDebuggerDisconnect; DebugAdapter.OnDebuggerDisconnect += TeardownRpcDebuggingHook; }
private void TeardownRpcDebuggingHook(MeadowSolidityDebugAdapter debugAdapter) { // Teardown our hook by setting the target as null. JsonRpcClient.JsonRpcExecutionAnalysis = null; }
private void DebugAdapter_OnDebuggerDisconnect(MeadowSolidityDebugAdapter sender) { TeardownRpcDebuggingHook(sender); OnDebuggerDisconnect?.Invoke(); }