Commit c8d6a6b0 authored by michael.kirsten's avatar michael.kirsten
Browse files

Removed annoying sysout messages.

parent bf35f666
No preview for this file type
This diff is collapsed.
//Calculate the factorial of k recursively. //Calculate the factorial of k recursively.
//other functions must be declared before the main
int fac(int k) { int fac(int k) {
if (k <= 1) if (k <= 1)
return 1; return 1;
...@@ -9,7 +8,6 @@ int fac(int k) { ...@@ -9,7 +8,6 @@ int fac(int k) {
return res; return res;
} }
//every program needs a main method
int main(int k) { int main(int k) {
int res; int res;
res = fac(k); res = fac(k);
......
...@@ -288,7 +288,7 @@ public class DebugControl { ...@@ -288,7 +288,7 @@ public class DebugControl {
* @throws DIbuggerLogicException * @throws DIbuggerLogicException
*/ */
public void createWatchExpression(int id, String expr) throws DIbuggerLogicException { public void createWatchExpression(int id, String expr) throws DIbuggerLogicException {
System.out.println("Add watch expression: "+id+" "+expr); // System.out.println("Add watch expression: "+id+" "+expr);
while (list_watchExpressions.size() - 1 < id) { while (list_watchExpressions.size() - 1 < id) {
list_watchExpressions.add(null); list_watchExpressions.add(null);
} }
...@@ -307,7 +307,7 @@ public class DebugControl { ...@@ -307,7 +307,7 @@ public class DebugControl {
* @throws DIbuggerLogicException * @throws DIbuggerLogicException
*/ */
public void changeWatchExpression(int id, String expr, List<ScopeTuple> scopes) throws DIbuggerLogicException { public void changeWatchExpression(int id, String expr, List<ScopeTuple> scopes) throws DIbuggerLogicException {
//System.out.println("Change watch expression: "+id+" to "+expr); // System.out.println("Change watch expression: "+id+" to "+expr);
if (id < list_watchExpressions.size()) { if (id < list_watchExpressions.size()) {
WatchExpression e = list_watchExpressions.get(id); WatchExpression e = list_watchExpressions.get(id);
if (e != null) { if (e != null) {
...@@ -327,7 +327,7 @@ public class DebugControl { ...@@ -327,7 +327,7 @@ public class DebugControl {
* the id of the watch expression * the id of the watch expression
*/ */
public void deleteWatchExpression(int id) { public void deleteWatchExpression(int id) {
System.out.println("Remove watch expression: "+id); // System.out.println("Remove watch expression: "+id);
if (id == list_watchExpressions.size() - 1) { if (id == list_watchExpressions.size() - 1) {
list_watchExpressions.remove(id); list_watchExpressions.remove(id);
} else { } else {
...@@ -583,8 +583,8 @@ public class DebugControl { ...@@ -583,8 +583,8 @@ public class DebugControl {
*/ */
public List<Integer> getWEScopeBegin(int expressionID) { public List<Integer> getWEScopeBegin(int expressionID) {
List<Integer> l = new ArrayList<Integer>(); List<Integer> l = new ArrayList<Integer>();
System.out.println("Get Expression: "+expressionID); // System.out.println("Get Expression: "+expressionID);
System.out.println("From: "+list_watchExpressions); // System.out.println("From: "+list_watchExpressions);
if(list_watchExpressions.get(expressionID)!=null) { if(list_watchExpressions.get(expressionID)!=null) {
for (ScopeTuple it : list_watchExpressions.get(expressionID).getScopes()) { for (ScopeTuple it : list_watchExpressions.get(expressionID).getScopes()) {
l.add(it.getStartLine()); l.add(it.getStartLine());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment