eclipse-cdt-cloud / cdt-cloud-blueprint

CDT Cloud Blueprint is a template for building custom web-based C/C++ tools. It is made up of existing open source components and can be easily downloaded and installed on all major operating system platforms.
MIT License
22 stars 11 forks source link

Stop at main when starting a debug session #35

Closed jonahgraham closed 1 year ago

jonahgraham commented 1 year ago

What it does

Adds a temporary breakpoint at main in the CMake example project.

This allows the demo run of the example to work a bit more smoothly as starting the debug session won't immediately terminate due to no breakpoints.

How to test

Start CDT.cloud, create the CMake example project and debug it. There should be a new line in .theia/launch.json that reasds:

      "initCommands": ["tbreak main"],
jonahgraham commented 1 year ago

@planger I realized that this is probably the best way to do this, at least in the short term. Have a look and merge in if you like.