#pragma warning restore CA1710 // Identifiers should have correct suffix private Debugging(string debugSessionID) { _debugSessionID = debugSessionID; _pipeServer = new NamedPipeServerStream(_debugSessionID, PipeDirection.InOut, 1, PipeTransmissionMode.Byte, PipeOptions.Asynchronous); _debugAdapter = new MeadowSolidityDebugAdapter(); _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(); }
private Debugging(string debugSessionID) { _debugSessionID = debugSessionID; _pipeServer = new NamedPipeServerStream(_debugSessionID, PipeDirection.InOut, 1, PipeTransmissionMode.Byte, PipeOptions.Asynchronous); _debugAdapter = new MeadowSolidityDebugAdapter(); }