esp-rs / esp-idf-template

A "Hello, world!" template of a Rust binary crate for the ESP-IDF framework.
373 stars 44 forks source link

VSCode setup as an option for non devcontainer setup #97

Open Vollbrecht opened 1 year ago

Vollbrecht commented 1 year ago

Many people like vscode, many dont. I personally would like an option to include some vscode setup like in the container base, mainly for the debugging options. Setup debugging is hard and we should make it as simple as possible for people. Though in light of not overbloading #95 the generating process what you guys think?

SergioGasquez commented 1 year ago

Not a full solution, but since we are adding a Wokwi standalone prompt that adds support for Wokwi Vs Code extension, it will include a .vscode/launch.json with the required settings to debug

Vollbrecht commented 1 year ago

one potential problem, depending on what debugging extension we are using, it need to be installed by the user. So using cppdbg would need the microsoft C/C++ extension, using corged-m-debug would Cortex-Debug extension etc. And iirc VSCode is not smart enough to figoure it out. Have to look into it though, maybe we can find something. We dont have this problem in the container where we can setup the vscode extension by ourself.