Allow debugging applications and tests in monorepos #85
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
NeonXP/nvim-dap-go#85
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As explained in this issue it wasn't possible to launch the debugee (go application or test to be debugged) in projects where the
go.modis not in the cwd when delve is launched.https://github.com/leoluz/nvim-dap-go/pull/81 introduced a new attribute (
cwd) in thedap.adaptars.go.executabletable to allow defining this value. However it partially fixes the problem as users would have to hardcode the value with the path to where the go.mod file is located. This isn't ideal as switching projects would require users to modify this attribute to set the new path.This proposal suggests:
go.modfile in parent directories based on the path of the current buffer and dynamically set thedap.adaptars.go.executable.cwdwith it. See similar strategy here.This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.