You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 1, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ This extension provides several commands in the Command Palette (`F1` or `Ctrl +
50
50
-**Arduino: Verify**: Build sketch.
51
51
52
52
## Options
53
-
The following Visual Studio Code settings are available for the Arduino extension. These can user preferences `Ctrl + ,` or workspace settings (.vscode/settings.json). The later overrides the former.
53
+
The following Visual Studio Code settings are available for the Arduino extension. These can be set in global user preferences `Ctrl + ,` or workspace settings (.vscode/settings.json). The later overrides the former.
54
54
55
55
```json
56
56
{
@@ -63,6 +63,24 @@ The following Visual Studio Code settings are available for the Arduino extensio
63
63
-`arduino.additionalUrls` - Additional URLs for 3rd party packages. You can have multiple URLs in one string with comma(,) as separator, or have a string array. The default value is empty.
64
64
-`arduino.logLevel` - CLI output log level. Could be info or verbose. The default value is `"info"`.
65
65
66
+
The following settings are per sketch settings of the Arduino extension. You can find them in
67
+
`.vscode/arduino.json` under the workspace.
68
+
69
+
```json
70
+
{
71
+
"sketch": "example.ino",
72
+
"port": "COM5",
73
+
"board": "adafruit:samd:adafruit_feather_m0",
74
+
"output": "../build",
75
+
"debugger": "jlink"
76
+
}
77
+
```
78
+
-`sketch` - The main sketch file name of Arduino.
79
+
-`port` - Name of the serial port connected to the device. Can be set by the `Arduino: Select Serial Port` command.
80
+
-`board` - Current selected Arduino board alias. Can be set by the `Arduino: Change Board Type` command. Also, you can find the board list there.
81
+
-`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 subfolder of the workspace, otherwise, it may not work correctly. By default, this option is not set.
82
+
-`debugger` - The short name of the debugger that will be used when the board itself does not have any debugger and there are more than one debugger available. You can find the list of debuggers [here](https://github.com/Microsoft/vscode-arduino/blob/master/misc/debuggerUsbMapping.json). By default, this option is not set.
83
+
66
84
## Debugging Arduino Code <sup>preview</sup>
67
85
Before you start debug your Arduino code, read [this doc](https://code.visualstudio.com/docs/editor/debugging) and get to know the basic mechanism about debugging in Visual Studio Code. Also see [debugging for C++ in VSCode](https://code.visualstudio.com/docs/languages/cpp#_debugging) for your reference.
0 commit comments