Skip to main content
Graduate
April 24, 2025
Solved

Run without debugging on VSCode

  • April 24, 2025
  • 12 replies
  • 4671 views

I have setup STM32 VSCode extension on my PC and it is amazing. The only problem that I have encountered is that it is not possible to run the code without debugging. I removed the "runToEntryPoint": "main" line in launch.json. But every time I launch the code it attaches a debugger. How can I simply run the code without debugging?

 

Thank you,

Damiano

    This topic has been closed for replies.
    Best answer by Sarra.S

    In the tasks.json file, there is a a "task" labeled STM32: CubeProg: Flash project (SWD) 

    You can execute this task to perform a "flash and reset" altogether! 

    There are 3 options to execute this: 

    Option1: By "clicking": Terminal > Run Task... > CubeProg: Flash Project (SWD)
    SarraS_0-1746551491069.png

    Option2 via Run Task keyboard shortcut:

    Option3: Pre-installed keyboard shortcut:

    • CTRL + P
    • Type: "Task CubePro..." <-- You will notice that the menu auto-suggests tasks matching your pattern.

    Option3: Pre-installed keyboard shortcut: 

    • CTRL+ALT+F <-- This will immediately execute the same task

    12 replies

    Visitor II
    December 24, 2025

    Hi David, thousand thanks for the detailed description!

     

    Visitor II
    December 30, 2025

    Hey! Thanks for this, I thought I was going crazy as I had some old proejcts generated using an older version with these tasks added automatically! 

    The tasks you suggest are using the command to call the STM32_Programmer_CLI which should have been replaced in v 3.7.0 with the built in CLI tools installed through the bundles manager. Do you have an idea of how to recreate this functionality without installing the STM32CubeProgrammer?