fix argument ref in (dap--create-session) #552
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm seeing an issue while trying to set up a new/custom dap provider.
The
debugPort
argument referenced in the docs:dap-mode/docs/page/adding-debug-server.md
Line 23 in 76cad34
Suggests the following:
however
debugPort
isn't being read in on the call to(dap--open-network-stream)
It appears that the argument that sets the port is actually called
debugServer
.when i register a dap provider this way, it works for me and I connect to the debug server just fine:
However, I think that this
debugServer
argument might conflict with the docs, and is maybe a bit of a confusing naming.Digging through the issue history it looks like some others have run into the same thing and a similar fix worked for several of them:
#543
#7
#31
#479
But I haven't seen a PR up for this, yet - so I figured I'd get the ball rolling!