I'm running the VS Code Pico extension on Ubuntu and can't work out how to switch between debug and release builds.
I've seen the 'tip' on p.33 of the 'Getting Started...' doc, which says: "You can toggle between "Debug" and "Release" builds by clicking CMake: [Debug]: Ready in the blue bottom bar. By default, this configuration builds a debug-enabled executable ready for SWD debugging."
But I have no 'CMake: [Debug]: Ready' in the blue bottom bar (just 'CMake').
I was used to doing this before (the Pico extension) by simply passing a DCMAKE_BUILD_TYPE argument to cmake when calling it (from the CLI). If I wanted to switch between debug and release I'd delete the contents of the 'build' directory and run cmake, with the required argument, from within it. This no longer seems to be an option.
I'd be happy to use a 'blue bar' button if I had one. But I'd also like to know where in the configuration files the 'build type' argument is to be found, so I can edit it manually if necessary.
I've never really understood CMake - always found it utterly baffling - hope I'm not the only one.
Ian.
I've seen the 'tip' on p.33 of the 'Getting Started...' doc, which says: "You can toggle between "Debug" and "Release" builds by clicking CMake: [Debug]: Ready in the blue bottom bar. By default, this configuration builds a debug-enabled executable ready for SWD debugging."
But I have no 'CMake: [Debug]: Ready' in the blue bottom bar (just 'CMake').
I was used to doing this before (the Pico extension) by simply passing a DCMAKE_BUILD_TYPE argument to cmake when calling it (from the CLI). If I wanted to switch between debug and release I'd delete the contents of the 'build' directory and run cmake, with the required argument, from within it. This no longer seems to be an option.
I'd be happy to use a 'blue bar' button if I had one. But I'd also like to know where in the configuration files the 'build type' argument is to be found, so I can edit it manually if necessary.
I've never really understood CMake - always found it utterly baffling - hope I'm not the only one.
Ian.
Statistics: Posted by IanL2 — Mon Aug 05, 2024 10:14 am