static async Task <int> Main(string[] args) { // Break program if requested. if (SolidityDebugger.DebugStopOnEntry && !System.Diagnostics.Debugger.IsAttached) { System.Diagnostics.Debugger.Launch(); } // Setup direct stdin/stdout connection to the debugger host app (vscode). var stdInOutDebuggerTransport = new StandardInputOutputDebuggerTransport(); // Connect to the debugger host app (vscode). using (var solidityDebugger = SolidityDebugger.AttachSolidityDebugger(stdInOutDebuggerTransport, useContractsSubDir: false)) { try { await Run(args); } catch (Exception ex) { solidityDebugger.DebugAdapter.SendProblemMessage(ex.Message, ex.ToString()); Console.Error.WriteLine(ex); return(1); } } return(0); }
public static void Main(string[] args) { SolidityDebugger.Launch(); }