Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

break at main option when launching #250

Open
jonahgraham opened this issue Feb 2, 2023 · 1 comment
Open

break at main option when launching #250

jonahgraham opened this issue Feb 2, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@jonahgraham
Copy link
Contributor

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants