Closed
Description
Bug Report
See https://github.com/arduino/arduino-pro-ide/issues/217 for a detailed description of the problem.
Cause of this problem:
The CLI copies sketch libraries to a temp folder and compiles them from there. With this approach, the source path included in the debugging information is in the temp folder, not the original sketch folder, so breakpoints set on files in the sketch folder are not considered.
Possible solutions:
- Don't copy sketch libraries to the temp folder.
- Add
#line
compiler directives to the copied files like it's done by the .ino preprocessor. These directives are understood by gcc so it uses the correct source paths in the debugging information.