launchSettings.json launchUrl doesn't work "api/values"

15,346

Solution 1

The problem is because of Visual Studio for Mac. I was able to get the correct url to chance Run With>Custom Configuration > Run Action --> Debug .Net Core Debugger

Solution 2

I am using VSCode and is happening the same to me, but on Windows. I am just enhancing a bit the answer here.

I have tried VS2019 and it worked in that IDE, so it is supposely to do with VSCode. I have searched for other answers and I found this.

vscode launch.json debug and open specific url

What fixed my issue was to go to .vscode/launch.json file and append:

         "launchBrowser": {
            "enabled": true,
            "args": "${auto-detect-url}",
            "windows": {
                "command": "cmd.exe",
                "args": "/C start ${auto-detect-url}/swagger"
            }

as Anton Dremin describes, just add the above into the configurations section.

Share:
15,346

Related videos on Youtube

Haktan Enes Biçer
Author by

Haktan Enes Biçer

Updated on June 04, 2022

Comments