Debugging Backchannels¶
VSCode¶
.NET¶
- Follow the Prerequisites steps from this VSCode tutorial.
- The docker containers need the
$DOCKERHOSTvariable, and currently VSCode doesn't offer a way to do this dynamically. cp .env.example .env- Replace
DOCKERHOSTwith the output of./manage dockerhost, also replace the IP inLEDGER_URLwith 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 runscript are the same as the backchannels started with the debugger. - If you now, for example, run
./manage run -d dotnet -t @T001-AIP10-RFC0160it will run the tests using the backchannels you started from the debugger.
For more information on debugging in VSCode see the docs.
Troubleshooting¶
Process 'dotnet dev-certs https --check --trust'¶
If you get the following error:
This means the ASP.NET Core development certificate is not quite working. Running the following should fix the problem: