public static void main(String[] args) {
        // Validate the number of arguments
        if (args.length != 2) {
            error("Expected two arguments but found " + args.length + "\n. Please try again with two arguments: " +
                    "<siddhi app file> <input file path>");
            return;
        }

        String siddhiAppPath = args[0];
        String inputPath = args[1];

        // Validate file
        File siddhiAppFile = new File(siddhiAppPath);
        File inputFile = new File(inputPath);
        if (!siddhiAppFile.exists() || !siddhiAppFile.isFile()) {
            error("Invalid siddhi app file: " + siddhiAppPath);
        }
        if (!inputFile.exists() || !inputFile.isFile()) {
            error("Invalid input file: " + inputPath);
        }

        // Read the files
        String query;
        String input;
        try {
            query = readText(siddhiAppPath);
            input = readText(inputPath);
        } catch (IOException e) {
            error("Failed to read " + siddhiAppPath);
            return;
        }
        try {
            input = readText(inputPath);
        } catch (IOException e) {
            error("Failed to read " + inputPath);
            return;
        }
        // Start the SiddhiDebuggerClient
        SiddhiDebuggerClient client = new SiddhiDebuggerClient();
        client.start(query, input);
    }
Main method of the SiddhiDebuggerClient.

@param args two arguments are expected: siddhi app path and input file path
modules/siddhi-core/src/main/java/io/siddhi/core/debugger/SiddhiDebuggerClient.java