Skip to content

Starting debug session saves without warning #60

Open
@per1234

Description

@per1234

Describe the problem

🐛 When you start a debug session with a dirty sketch, the sketch is automatically saved, even though the "Auto save" preference is disabled. Combined with the current behavior of compiling and uploading the saved version of the sketch (https://github.com/arduino/arduino-pro-ide/issues/432), this can be quite confusing.

To reproduce

  1. Select File > Preferences... from the Arduino IDE menus.
  2. Uncheck the box next to "Auto save".
  3. Click the "OK" button.
  4. Make a change to the sketch code.
    ❗ Don't save.
  5. Click the "Start Debuging" button.

🐛 The dirty indicator disappears and the changes are saved to the sketch.

Expected behavior

Don't save the sketch when starting a debug session.

Arduino IDE version

Original report

0.1.4

Last verified with

9a6a457

Operating system

Windows

Operating system version

11

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the latest nightly build
  • My request contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftopic: debuggerRelated to the integrated debuggertype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions