Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
i57
dibugger
Commits
c8d6a6b0
Commit
c8d6a6b0
authored
Apr 06, 2019
by
michael.kirsten
Browse files
Removed annoying sysout messages.
parent
bf35f666
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
dibugger.jar
View file @
c8d6a6b0
No preview for this file type
error.log
deleted
100644 → 0
View file @
bf35f666
This diff is collapsed.
Click to expand it.
res/ui/previewcode_recursive.txt
View file @
c8d6a6b0
//Calculate the factorial of k recursively.
//other functions must be declared before the main
int fac(int k) {
if (k <= 1)
return 1;
...
...
@@ -9,7 +8,6 @@ int fac(int k) {
return res;
}
//every program needs a main method
int main(int k) {
int res;
res = fac(k);
...
...
src/dibugger/debuglogic/debugger/DebugControl.java
View file @
c8d6a6b0
...
...
@@ -288,7 +288,7 @@ public class DebugControl {
* @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
)
{
list_watchExpressions
.
add
(
null
);
}
...
...
@@ -307,7 +307,7 @@ public class DebugControl {
* @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
())
{
WatchExpression
e
=
list_watchExpressions
.
get
(
id
);
if
(
e
!=
null
)
{
...
...
@@ -327,7 +327,7 @@ public class DebugControl {
* the id of the watch expression
*/
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
)
{
list_watchExpressions
.
remove
(
id
);
}
else
{
...
...
@@ -583,8 +583,8 @@ public class DebugControl {
*/
public
List
<
Integer
>
getWEScopeBegin
(
int
expressionID
)
{
List
<
Integer
>
l
=
new
ArrayList
<
Integer
>();
System
.
out
.
println
(
"Get Expression: "
+
expressionID
);
System
.
out
.
println
(
"From: "
+
list_watchExpressions
);
//
System.out.println("Get Expression: "+expressionID);
//
System.out.println("From: "+list_watchExpressions);
if
(
list_watchExpressions
.
get
(
expressionID
)!=
null
)
{
for
(
ScopeTuple
it
:
list_watchExpressions
.
get
(
expressionID
).
getScopes
())
{
l
.
add
(
it
.
getStartLine
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment