Skip to content

Commit

Permalink
Remove debug verbosity.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobmcwhirter committed Nov 20, 2014
1 parent 1f5ac8c commit 033d3e6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/main/java/org/dynjs/debugger/Debugger.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,9 @@ public void debug(ExecutionContext context, Statement statement, Statement previ
}
if (shouldBreak(statement, previousStatement)) {
this.paused = true;
System.err.println( "PAUSED = TRUE" );
try {
doBreak(context, statement);
} finally {
System.err.println( "PAUSED = FALSE" );
this.paused = false;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/dynjs/debugger/agent/DebuggerAgent.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ public DebuggerAgent(final Debugger debugger, final EventLoopGroup group, final
@Override
protected void initChannel(Channel ch) throws Exception {
ch.config().setAutoRead(true);
ch.pipeline().addLast("debug", new DebugHandler("debugger"));
//ch.pipeline().addLast("debug", new DebugHandler("debugger"));
ch.pipeline().addLast("json.encoder", new JSONEncoder(debugger));
ch.pipeline().addLast("json.decoder", new JSONDecoder(debugger));
ch.pipeline().addLast("decoded", new DebugHandler("decoded"));
//ch.pipeline().addLast("decoded", new DebugHandler("decoded"));

ch.pipeline().addLast("connect", new ConnectHandler());

Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/dynjs/debugger/agent/JSONEncoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public JSONEncoder(Debugger debugger) {

@Override
public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {
System.err.println("----------------------------> " + msg);
if (msg instanceof ConnectEvent) {
String headers = "Type: connect\r\nContent-Length: 0\r\n\r\n";
ByteBuf buffer = ctx.alloc().buffer();
Expand Down

0 comments on commit 033d3e6

Please sign in to comment.