Sporkinator

Debugging

Mar 17th, 2012
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var i, j;
  2. i = argument0;
  3. j = argument1;
  4. if (debug_mode) show_message("Before Loops: i = " + string(i) + "#j = " + string(j));
  5. while(i != argument2)
  6. {
  7.     i += sign(argument2 - i);
  8.     tile[i, j] = 0;
  9.     if (debug_mode) if (!show_question("while (" + string(i) + " != " + string(argument2) + ")#In Loop 1: i = " + string(i) + "#j = " + string(j))) break;
  10. }
  11. while(j != argument3)
  12. {
  13.     j += sign(argument3 - j);
  14.     tile[i, j] = 0;
  15.     if (debug_mode) if (!show_question("while (" + string(j) + " != " + string(argument3) + ")#In Loop 2: i = " + string(i) + "#j = " + string(j) + "##Yes = Continue#No  = break")) break;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment