File tree Expand file tree Collapse file tree
debugger/cdt-debugger-impl/src/main/java/consulo/javascript/debugger/cdt Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,11 +27,10 @@ public void execute(Runnable runnable) {
2727
2828 @ Override
2929 public void shutdown () {
30-
3130 }
3231 });
3332
34- if (Boolean . FALSE ) {
33+ if (LoggingWebSocketService . DEBUG ) {
3534 webSocketService = new LoggingWebSocketService (webSocketService );
3635 }
3736
Original file line number Diff line number Diff line change 1111 * @since 2026-02-16
1212 */
1313public class LoggingWebSocketService implements WebSocketService {
14+ public static final Boolean DEBUG = false ;
15+
1416 private final WebSocketService myDelegate ;
1517
1618 public LoggingWebSocketService (WebSocketService delegate ) {
@@ -24,14 +26,19 @@ public void connect(URI uri) throws WebSocketServiceException {
2426
2527 @ Override
2628 public void send (String s ) throws WebSocketServiceException {
27- System .out .println ("send " + s );
29+ if (DEBUG ) {
30+ System .out .println ("send " + s );
31+ }
32+
2833 myDelegate .send (s );
2934 }
3035
3136 @ Override
3237 public void addMessageHandler (Consumer <String > consumer ) throws WebSocketServiceException {
3338 myDelegate .addMessageHandler (s -> {
34- System .out .println ("rec: " + s );
39+ if (DEBUG ) {
40+ System .out .println ("rec: " + s );
41+ }
3542 consumer .accept (s );
3643 });
3744 }
You can’t perform that action at this time.
0 commit comments