Skip to content

Communication debugging & testing

Daniel Frantik edited this page Jan 1, 2020 · 2 revisions

Debugging communication under Visual Studio

Since v 3.5 - complete communication is written to the Output window.

Debugging communication

If you want to see what is going to the router or see router response, you can hook OnWriteRow and OnReadRow on ITikConnection object.

        // ....
        Connection.OnWriteRow += Connection_OnWriteRow;
        // ....

        private void Connection_OnWriteRow(object sender, TikConnectionCommCallbackEventArgs e)
        {
            Console.WriteLine(e.Word);
        }

API syntax testing

If you are not sure about API syntax and you want to test it, you can use sample project SampleConsole to test your commands and see response.