예제 #1
0
#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;
        }
예제 #2
0
 private void TeardownRpcDebuggingHook(MeadowSolidityDebugAdapter debugAdapter)
 {
     // Teardown our hook by setting the target as null.
     JsonRpcClient.JsonRpcExecutionAnalysis = null;
 }
예제 #3
0
 private void DebugAdapter_OnDebuggerDisconnect(MeadowSolidityDebugAdapter sender)
 {
     TeardownRpcDebuggingHook(sender);
     OnDebuggerDisconnect?.Invoke();
 }