microsoft / microsoft/vscode-mono-debug
mono.exe not found in debug session
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 180
- Forks
- 182
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 1
Description
I have Visual Studio Code 1.41.1 installed with latest Mono-debug.
When I start debugging I get the following error:
mono --debug --debugger-agent=transport=dt_socket,server=y,address=127.0.0.1:50046 cscs.exe -d -inmem:0 -co:/debug:pdbonly -ac:2 c:\Users\Administrator\AppData\Roaming\Code\User\cs-script.user\new_script.cs
'"C:\Users\Administrator\AppData\Roaming\Code\User\cs-script.user\mono.exe"' is not recognized as an internal or external command,
operable program or batch file.
When I open a cmd.exe and enter just mono.exe I get the help for mono. So my path variable is correctly set to:
PATH=C:\Program Files\Mono\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\dotnet;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps
Why does visual studio code try to start mono.exe from the script directory? And why is there a double backslash before mono.exe?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the debug session described in the issue and compare the command's resolved mono.exe path with the reported PATH. Investigate how the debug adapter chooses the script directory and handles the doubled backslash; done means a session can launch mono from the configured installation without requiring mono.exe in the script directory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100