dotnet
To run the api with debug on, change into the webApplication1
directory
and
run
cd WebApplication1
dotnet build
Make sure you are in the directory
enter the command
dotnet run
you can now go back to the WebApplication1.http
and click send request
Notice that breakpoint works the same,
just go to the WebApplication1
script and click
send request
after inserting the breakpoint
shorcut for running Send
Command + alt + R
If you kill the process of dotnet
, and try to re-run
the process you will encounter an error with the server.
**Notice this where the port is located in the .htpp
and launchSetting.json
scripts
Locate the server with the lsof -i
command and the port number after the :
lsof -i :port number
Kill the command with the PID
kill -9 PID number
Rerun dotnet
dotnet run
Or you can change the port number in the WebApplication1.http
and launchSetting.json