Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 95658c4

Browse files
committed
Remove arduino debug type
1 parent 2ea9063 commit 95658c4

14 files changed

+3
-823
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
88
### Changed
99

1010
- The bundled version of the Arduino CLI was updated to [version 0.31.0](https://github.com/arduino/arduino-cli/releases/tag/0.31.0). [#1606](https://github.com/microsoft/vscode-arduino/pull/1606)
11+
- All functionality related to the `arduino` debug type was removed from the extension. The built-in debugging support was rarely used and not actively maintained. [#1610](https://github.com/microsoft/vscode-arduino/pull/1610)
1112

1213
### Fixed
1314

README.md

+1-22
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Gitter](https://img.shields.io/badge/chat-on%20gitter-blue.svg)](https://gitter.im/Microsoft/vscode-arduino)
44

5-
Welcome to the Visual Studio Code extension for **Arduino** <sup>preview</sup> ! The Arduino extension makes it easy to develop, build, deploy and debug your Arduino sketches in Visual Studio Code, with a rich set of functionalities. These include:
5+
Welcome to the Visual Studio Code extension for **Arduino** <sup>preview</sup> ! The Arduino extension makes it easy to develop, build, and deploy your Arduino sketches in Visual Studio Code, with a rich set of functionalities. These include:
66

77
* IntelliSense and syntax highlighting for Arduino sketches
88
* Verify and upload your sketches in Visual Studio Code
@@ -12,7 +12,6 @@ Welcome to the Visual Studio Code extension for **Arduino** <sup>preview</sup> !
1212
* Snippets for sketches
1313
* Automatic Arduino project scaffolding
1414
* Command Palette (<kbd>F1</kbd>) integration of frequently used commands (e.g. Verify, Upload...)
15-
* Integrated Arduino Debugging <sup>New</sup>
1615

1716
## Prerequisites
1817
Either the legacy Arduino IDE or Arduino CLI are required. The recommended
@@ -121,7 +120,6 @@ The following settings are as per sketch settings of the Arduino extension. You
121120
"port": "COM5",
122121
"board": "adafruit:samd:adafruit_feather_m0",
123122
"output": "../build",
124-
"debugger": "jlink",
125123
"prebuild": "./prebuild.sh",
126124
"postbuild": "./postbuild.sh",
127125
"intelliSenseGen": "global"
@@ -131,7 +129,6 @@ The following settings are as per sketch settings of the Arduino extension. You
131129
- `port` - Name of the serial port connected to the device. Can be set by the `Arduino: Select Serial Port` command. For Mac users could be "/dev/cu.wchusbserial1420".
132130
- `board` - Currently selected Arduino board alias. Can be set by the `Arduino: Change Board Type` command. Also, you can find the board list there.
133131
- `output` - Arduino build output path. If not set, Arduino will create a new temporary output folder each time, which means it cannot reuse the intermediate result of the previous build leading to long verify/upload time, so it is recommended to set the field. Arduino requires that the output path should not be the workspace itself or in a subfolder of the workspace, otherwise, it may not work correctly. By default, this option is not set. It's worth noting that the contents of this file could be deleted during the build process, so pick (or create) a directory that will not store files you want to keep.
134-
- `debugger` - The short name of the debugger that will be used when the board itself does not have a debugger and there is more than one debugger available. You can find the list of debuggers [here](https://github.com/Microsoft/vscode-arduino/blob/main/misc/debuggerUsbMapping.json). By default, this option is not set.
135132
- `prebuild` - External command which will be invoked before any sketch build (verify, upload, ...). For details see the [Pre- and Post-Build Commands](#Pre--and-Post-Build-Commands) section.
136133
- `postbuild` - External command to be run after the sketch has been built successfully. See the afore mentioned section for more details.
137134
- `intelliSenseGen` - Override the global setting for auto-generation of the IntelliSense configuration (i.e. `.vscode/c_cpp_properties.json`). Three options are available:
@@ -201,24 +198,6 @@ vscode-arduino's analysis stores the result as a dedicated IntelliSense-configur
201198

202199
This system allows you to setup and use own IntelliSense configurations in parallel to the automatically generated configurations provided through vscode-arduino. Just add your configuration to `c_cpp_properties.json` and name it differently from the default configuration (`Arduino`), e.g. `My awesome configuration` and select it from the status bar or via the command palette command **C/C++: Select a Configuration...**
203200

204-
## Debugging Arduino Code <sup>preview</sup>
205-
Before you start to debug your Arduino code, please read [this document](https://code.visualstudio.com/docs/editor/debugging) to learn about the basic mechanisms of debugging in Visual Studio Code. Also see [debugging for C++ in VSCode](https://code.visualstudio.com/docs/languages/cpp#_debugging) for further reference.
206-
207-
Make sure that your Arduino board can work with [STLink](http://www.st.com/en/development-tools/st-link-v2.html), [Jlink](https://www.segger.com/jlink-debug-probes.html) or [EDBG](http://www.atmel.com/webdoc/protocoldocs/ch01s01.html). The debugging support is currently fully tested with the following boards:
208-
- [MXChip IoT Developer Kit - AZ3166](https://microsoft.github.io/azure-iot-developer-kit/)
209-
- [Arduino M0 PRO](https://www.arduino.cc/en/Main/ArduinoBoardM0PRO)
210-
- [Adafruit WICED WiFi Feather](https://www.adafruit.com/product/3056)
211-
- [Adafruit Feather M0](https://www.adafruit.com/product/3010)
212-
- Arduino Zero Pro
213-
214-
Steps to start debugging:
215-
1. Plug in your board to your development machine properly. For those boards that do not have an on-board debugging chip, you need to use a STLink or JLink connector.
216-
2. Go to the **Debug View** (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>D</kbd> *or* <kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>D</kbd>). and set breakpoints in your source files.
217-
3. Press <kbd>F5</kbd> to select your debugging environment.
218-
4. When your breakpoint is hit, you can see variables and add expression(s) to watch on the Debug Side Bar.
219-
220-
> To learn more about how to debug Arduino code, visit our [team blog](https://blogs.msdn.microsoft.com/iotdev/2017/05/27/debug-your-arduino-code-with-visual-studio-code/).
221-
222201
## Change Log
223202
See the [Change log](https://github.com/Microsoft/vscode-arduino/blob/main/CHANGELOG.md) for details about the changes in each version.
224203

misc/arduinoValidator.json

-5
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@
2828
"type": "string",
2929
"minLength": 1
3030
},
31-
"debugger": {
32-
"description": "Arduino Debugger Settings",
33-
"type": "string",
34-
"minLength": 1
35-
},
3631
"intelliSenseGen": {
3732
"description": "Disable/enable the automatic generation of the IntelliSense configuration file (c_cpp_properties.json) for this project (overrides the global setting). When set to \"global\" the global extension settings will be used.",
3833
"type": "string",

misc/debuggerUsbMapping.json

-102
This file was deleted.

misc/openOCDMapping.json

-18
This file was deleted.

0 commit comments

Comments
 (0)