public static void main()

in core/src/main/java/com/jetbrains/sa/SaJdwp.java [35:51]


    public static void main(String[] args) throws Exception {
        if (args.length < 1) {
            usage();
        }
        String port = args.length > 1 ? args[1] : "";
        List<String> commands = getServerProcessCommand(args[0], port, true, getJarPath());
        try {
            startServer(commands);
        } catch (Exception e) {
            List<String> commandsWithSudo = createSudoCommand(commands);
            if (commandsWithSudo.equals(commands)) {
                throw e;
            }
            System.out.println("Trying with sudo...");
            startServer(commandsWithSudo);
        }
    }