Skip to content

Commit 48d90e9

Browse files
committed
Improve Qute debugger port listening log
Signed-off-by: azerr <[email protected]>
1 parent 2ce3255 commit 48d90e9

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

independent-projects/qute/debug/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ It works seamlessly with:
77
- [VS Code](https://code.visualstudio.com/)
88
- [IntelliJ (via LSP4IJ)](https://github.com/redhat-developer/lsp4ij)
99

10-
You can use it with a simple **Java main class** or directly inside a **Quarkus application**.
10+
You can use it with a simple [Java main class](#usage-in-a-java-main-class) or directly inside a [Quarkus application](#usage-in-a-quarkus-application).
1111

1212
![Qute template debugging](./images/QuteDebuggerDemo.gif)
1313

@@ -67,7 +67,7 @@ The [Quarkus Tools for IntelliJ](https://plugins.jetbrains.com/plugin/13234-quar
6767
When you start a Quarkus application in **Dev Mode**, IntelliJ automatically detects the Qute Debugger startup message:
6868

6969
```
70-
DebugServerAdapter listening on port 4971
70+
Qute debugger server listening on port 4971
7171
```
7272

7373
It then creates a **Remote Qute Debug** run configuration automatically, which you can launch directly:
@@ -101,10 +101,10 @@ The DAP client (e.g., your IDE) must then connect to port `12345`.
101101

102102
### 1. Enable Qute Debugger in `application.properties`
103103

104-
The Qute debugger is **disabled by default**. Enable it by adding:
104+
The Qute debugger is **enabled by default**. Disable it by adding (if you need):
105105

106106
```properties
107-
quarkus.qute.debug.enabled=true
107+
quarkus.qute.debug.enabled=false
108108
```
109109

110110
### 2. Start Quarkus with Debug Ports

independent-projects/qute/debug/src/main/java/io/quarkus/qute/debug/adapter/RegisterDebugServerAdapter.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,21 +187,21 @@ private synchronized void initializeAgentBlocking(int port, boolean suspend) {
187187

188188
try {
189189
serverSocket = new ServerSocket(port);
190-
log("DebugServerAdapter listening on port " + serverSocket.getLocalPort());
190+
log("Qute debugger server listening on port " + serverSocket.getLocalPort());
191191
if (suspend) {
192192
// Suspend mode: block here until a DAP client connects
193-
log("Waiting for DAP client to connect (suspend mode)...");
193+
log("Waiting for Qute debugger client to connect (suspend mode)...");
194194
var client = serverSocket.accept();
195-
log("DAP client connected (suspend mode)!");
195+
log("Qute debugger client connected (suspend mode)!");
196196
setupLauncher(client, true);
197197
} else {
198198
// Non-suspend mode: accept clients asynchronously in a daemon thread loop
199199
executor.execute(() -> {
200200
while (serverSocket != null && !serverSocket.isClosed()) {
201201
try {
202-
log("Waiting for a new DAP client...");
202+
log("Waiting for a new Qute debugger client...");
203203
var client = serverSocket.accept();
204-
log("DAP client connected!");
204+
log("Qute debugger client connected");
205205
setupLauncher(client, false);
206206
trackedEngines.forEach(engine -> agent.track(engine));
207207
} catch (IOException e) {

0 commit comments

Comments
 (0)