Open larrasket opened 2 years ago
Try to use args
and add --
or even -- --
before real arguments https://github.com/Samsung/netcoredbg/issues/68#issuecomment-1008963684
and looks like args
should be vector - https://code.visualstudio.com/docs/editor/variables-reference#_environment-variables not string
I'm running into this same problem, I need to start the debug on a different profile from what it defaults to. I tried the following in a .dir-locals.el file, but it doesnt seem to work:
((nil . ((eval . (dap-register-debug-template
"NetCoreDbg::Launch-local"
(list :type "coreclr"
:args '("--launch-profile=https")
:request "launch"
:preLaunchTask "build"
:mode "launch"
:name "NetCoreDbg::Launch"
:dap-compilation "dotnet build"
))))))
I've checked your links, but even with those I can't get to the right combination to get it to work. The debug will start with those settings, but it will ignore the argument given and thus start on the wrong profile still.
There is no documentation about which flag to use in specifying the debugging arguments with
.NetCoredDbg
& weather to use:args
orarguments :
. I tried a bunch of configuration though, none worked, my program is still being launched without any arguments. Here is my last simple try: