OpenSprinkler › Forums › OpenSprinkler Unified Firmware › vscode remote debugging configuration › Reply To: vscode remote debugging configuration
ronnie
In answer to Dan’s question I want to develop code using the development tools VScode provides like breakpoints and tracking variables.
So finally I have been able to compile opensprinkler using vscode. I reverted back to the previous release before 2.2.1 since that’s what I am running now. The first problem Dan pointed out was that I was trying to compile the entire gihub folder of files. So I created a project folder with only the files needed by the pi version. This left me with only errors related to the pthread mosquitto libraries. The vscode can’t execute “sudo G++” so I had to copy the 2 libraries to the project folder and change their ownership and privileges to non-root. I’m now working on getting GDB to perform debugging. The attached vscode task json file image contents result in duplicating the build.sh script G++ command.