我的处理错误 "Debugger halted" 是什么意思?

What does my Processing error, "Debugger halted" mean?

我正在观看 The Coding Train 的处理教程。在5.4中,他让这行代码本来应该有一个椭圆然后点击时移动,但再次点击时停止。但对我来说,它只是说 Debugger Halted。这是我的代码:

float x = 100;
boolean going = false;

void setup() {
  size(400, 300);
}

void draw() {
  background(0);
  fill(255);
  ellipse(x, 150, 24, 24);
  if (going) {
    x = x + 2;
  }
}

void mousePressed() {
  going = true;
}

我猜你 运行 处于设置了断点的调试模式。

您可能想通过单击右上角的蝴蝶按钮禁用调试模式,或者您想要找到断点并通过单击带有菱形图标的行号将其删除。