Getting the debugger to work

Arduino IDE & Zero
Version: 2.0.0-rc9.1

When I click on the green arrow to start the debugger I get this error.

Request 4 cancelled on connection closed.

Please help the new kid on the block.

Hi @apfreak. Where in the IDE are you seeing this error message (e.g., a notification, the "Debug Console" view, the "Output" view)?

Thanks for responding.
In the output view.

OK, thanks. That is helpful. I'm going to ask you to post some additional information that might help us to identify the problem.

:exclamation: NOTE: These instructions will not solve the problem. They are only intended to possibly gather some more information about the problem, which might provide a clue that leads to a solution.

Please do this:

  1. Produce the "Request 4 cancelled on connection closed" error just as you did before.
  2. Select the "Debug Console" tab from the bottom panel of the Arduino IDE window.
  3. Right click on the "Debug Console" pane.
  4. From the context menu, click "Select All".
  5. Right click on the "Debug Console" pane.
  6. From the context menu, click "Copy".
  7. Open a forum reply here by clicking the Reply button.
  8. Click the </> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block
  9. Press Ctrl+V.
    This will paste the compilation output into the code block.
  10. Move the cursor outside of the code tags before you add any additional text to your reply.
  11. Click the Reply button to post the output.

Please let me know if you have any questions or problems while following those instructions.

There is nothing to select in the Debug Console.

It is blank.

I fixed it.

Thanks for your help with this ptillisch.

Based on your responses I came to the conclusion this wasn't something that happens often.

I did what I call the Bill Gates fix. I deleted everything to do with Arduino off my computer. I rebooted and reinstalled it and now it is working.

Thank You.

I am sure I will have more issues.

I'm glad it is working now. Great job on finding the fix!

Thanks for taking the time to post an update.

Regards, Per

I encountered the same problem. There was "Request 4 cancelled on connection closed" error and will not fix itself after a reboot. There is no info in Debug Console or Output.

I tried to run the Arduino IDE from console, no helpful output either.

I tried to move the sketch to another place and it fix the problem.

Update: The bug is mentioned in Unable to start debugger when watch expressions are configured · Issue #1582 · arduino/arduino-ide · GitHub

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.