Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger does not work as compiled binaries are not in the sketch folder #1102

Closed
kittaakos opened this issue Dec 8, 2020 · 0 comments · Fixed by #1104
Closed

Debugger does not work as compiled binaries are not in the sketch folder #1102

kittaakos opened this issue Dec 8, 2020 · 0 comments · Fixed by #1104

Comments

@kittaakos
Copy link
Contributor

kittaakos commented Dec 8, 2020

Bug Report

#1042 breaks the debug -I command. The binaries are not where the debugger expects.

Current behavior

Steps to reproduce:

% rm -rf ~/Library/Arduino15
% rm -rf ~/Documents/Arduino/hardware
% ./arduino-cli version --format json
{
  "Application": "arduino-cli",
  "VersionString": "0.14.0-rc1",
  "Commit": "7d4baa9",
  "Status": "alpha",
  "Date": "2020-12-03T17:24:59Z"
}
% ./arduino-cli core install arduino:avr --format json
% cat ~/Documents/Arduino/DigisparkBlink/DigisparkBlink.ino 

#define LED_BUILTIN 1

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}

% ./arduino-cli compile -b arduino:avr:uno ~/Documents/Arduino/DigisparkBlink --format json
{
  "compiler_out": "Sketch uses 924 bytes (2%) of program storage space. Maximum is 32256 bytes.\nGlobal variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.\n",
  "compiler_err": "",
  "builder_result": {
    "build_path": "/var/folders/k3/d2fkvv1j16v3_rz93k7f74180000gn/T/arduino-sketch-F389360393BFFB04E3EC135340A2EF23",
    "executable_sections_size": [
      {
        "name": "text",
        "size": 924,
        "maxSize": 32256
      },
      {
        "name": "data",
        "size": 9,
        "maxSize": 2048
      }
    ]
  },
  "success": true
}
% ./arduino-cli debug -b arduino:avr:uno ~/Documents/Arduino/DigisparkBlink -I
Error getting Debug info: compiled sketch not found in /Users/akos.kitta/Documents/Arduino/DigisparkBlink/build/arduino.avr.uno
% 

Expected behavior

It works as it worked before #1042

Environment

  • CLI version (output of arduino-cli version):
  • OS and platform:

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants