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