Skip to content

Commit 2ab0995

Browse files
Mark Moseleydenofevil
authored andcommitted
added set_type command
1 parent fdae113 commit 2ab0995

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/org/rubyforge/debugcommons/RubyDebuggerProxy.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ public synchronized void jump(final int line) {
546546
}
547547
}
548548

549-
public synchronized void thread_pause(final int id) {
549+
public synchronized void threadPause(final int id) {
550550
try {
551551
sendCommand("pause " + id);
552552
}
@@ -556,6 +556,17 @@ public synchronized void thread_pause(final int id) {
556556
}
557557
}
558558
}
559+
560+
public synchronized void setType(final RubyVariable var, final String new_type) {
561+
try {
562+
sendCommand("set_type " + var.getName() + " " + new_type);
563+
}
564+
catch (final RubyDebuggerException ex) {
565+
if (isReady()) {
566+
LOGGER.log(Level.WARNING, "Cannot set_type", ex);
567+
}
568+
}
569+
}
559570

560571
/**
561572
* Tries to attach to the <code>target</code>'s process and gives up in

0 commit comments

Comments
 (0)