How Cool Request Transforms Java API Debugging and Performance Tracing

Cool Request is an IDEA plugin that enhances HTTP debugging by offering reflection calls, traceable method execution, MyBatis function monitoring, customizable timing highlights, and scriptable environment handling, enabling Java developers to efficiently analyze performance and automate request workflows without leaving the IDE.

Java Backend Technology
Java Backend Technology
Java Backend Technology
How Cool Request Transforms Java API Debugging and Performance Tracing

Cool Request is an IDEA plugin that not only sends basic HTTP requests but also offers powerful reflection calls, allowing developers to bypass interceptors and support annotations like @Scheduled and job frameworks such as xxl-job.

What is Cool Request

It provides interface debugging, method timing statistics, and the ability to invoke any class in the project, including third‑party libraries.

What is Trace

Trace can record the execution of any non‑java package, tracking method calls from the Controller layer down to configurable depths, with manual addition for interface‑based calls.

Automatic MyBatis Function Tracing

Trace can selectively follow MyBatis execution functions, showing SQL execution time (e.g., 7 ms) as illustrated.

Display Call Count

The left‑hand “+100” indicates a method was called 100 times, though per‑method duration is not yet measured.

Custom Timing Colors

Users can set a threshold (e.g., 5 ms) to highlight slower methods in red.

Script Environment Operations

Scripts can set request headers such as tokens, manipulate environment variables, and parse JSON responses using built‑in libraries like ObjectMapper.

public void handlerResponse(ILog log, HTTPResponse response, IEnv env) {
    String body = new String(response.getResponseBody());
    log.println(body);
    User user = JSON.parseObject(body, User.class);
    log.println(user.getAge() + "");
}
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

SpringBootIDEAtraceHTTP debugging
Java Backend Technology
Written by

Java Backend Technology

Focus on Java-related technologies: SSM, Spring ecosystem, microservices, MySQL, MyCat, clustering, distributed systems, middleware, Linux, networking, multithreading. Occasionally cover DevOps tools like Jenkins, Nexus, Docker, and ELK. Also share technical insights from time to time, committed to Java full-stack development!

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.