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

service/dap: Add support for debug and test modes #1901

Merged
merged 5 commits into from
Mar 4, 2020

Conversation

polinasok
Copy link
Collaborator

@polinasok polinasok commented Feb 28, 2020

This change also:
-- refactors building helper functions from commands.go into its own gobuild package.
-- makes processing untyped launch args (that are implementation-specific and not part of the DAP spec) more robust, verified by additional tests

Updates #1515

}

// OptFlags generates default build flags to turn off optimization and inlining.
func OptFlags(args []string) []string {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can tell this is only called inside gobuild, it doesn't need to be exported.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Fixed.

Copy link
Member

@aarzilli aarzilli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@derekparker derekparker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small nit (sorry!) otherwise looks great.

service/dap/server.go Outdated Show resolved Hide resolved
@derekparker derekparker merged commit f863be0 into go-delve:master Mar 4, 2020
@polinasok polinasok deleted the dap_build branch March 4, 2020 18:13
cgxxv pushed a commit to cgxxv/delve that referenced this pull request Mar 25, 2022
* service/dap: Add support for debug and test modes

* Address code review comments

* Remove //dap comment

* OptFlags() => optfalgs()

* If mode => switch mode
abner-chenc pushed a commit to loongson/delve that referenced this pull request Mar 1, 2024
* service/dap: Add support for debug and test modes

* Address code review comments

* Remove //dap comment

* OptFlags() => optfalgs()

* If mode => switch mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants