- Follow the Prerequisites steps from this VSCode tutorial.
- The docker containers need the
$DOCKERHOST
variable, and currently VSCode doesn't offer a way to do this dynamically.cp .env.example .env
- Replace
DOCKERHOST
with the output of./manage dockerhost
, also replace the IP inLEDGER_URL
with the output.
- Launch the desired debuggers from the Run view. You can launch multiple debuggers at the same time:
- .NET Backchannel - Acme
- .NET Backchannel - Bob
- .NET Backchannel - Faber
- .NET Backchannel - Mallory
- Run the tests using the manage script. The manage script will automatically detect if any of the agents is already running and skip the startup. You must make sure the backchannels that are passed to the
./manage run
script are the same as the backchannels started with the debugger.- If you now, for example, run
./manage run -d dotnet -t @T001-AIP10-RFC0160
it will run the tests using the backchannels you started from the debugger.
- If you now, for example, run
For more information on debugging in VSCode see the docs.
If you get the following error:
Error: Process 'dotnet dev-certs https --check --trust' exited with code 9
Error:
This means the ASP.NET Core development certificate is not quite working. Running the following should fix the problem:
dotnet dev-certs https --clean
dotnet dev-certs https --trust