break at main option when launching
jonahgraham opened this issue · 1 comments
jonahgraham commented
CDT (Eclipse IDE version) has a "break at main" (with a configurable symbol) option. GDB itself has a start
method that will do that functionality automatically and can be accessed via MI with -exec-run --start
.
This is a feature request to add that.
In the meantime the workaround is "initCommands": ["tbreak main"]
for launch scenario.
GitMensch commented
To mimic the CDT option I'd suggest a dual setting (can be boolean or string):
stopAtEntry
(that's actually what native.debug
has) or breakAtMain
(to swap over the old label). if true
-> run with --start
, if false (possibly the default) without, if a string: issue -break-insert -t $entry
.