preprocess
Print an Arduino sketch's preprocessed source to debug #define and conditional-compile issues without compiling it.
Instructions
Print the preprocessed sketch source (macros expanded, headers resolved) instead of compiling. Useful for debugging #define / conditional-compile issues.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sketchPath": "<sketchPath>"
},
"name": "preprocess"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fqbn | No | Board FQBN, e.g. 'arduino:avr:uno'. Omit if set via board-attach. | |
| sketchPath | Yes | Path to sketch folder or .ino file | |
| additionalUrls | No | Extra board-manager URLs | |
| buildProperties | No | Extra -D flags |