C# Debugger Support for Automate
Does the SDK support the C# debugger?
Yes, Debugger is supported after browserstack-sdk@1.0.2
and BrowserStack.TestAdapter@0.1.0
.
SDK spawns as many test processes as the number of platforms you want to test on. Debugger is attached to the first platform mentioned on browserstack.yml
. To attach the debugger to 2nd platform, 1st platform needs to be removed from platforms array in browserstack.yml
.
The Debugger is currently only supported for Windows.
Attach debugger while using IDE
To attach Debugger while using IDE:
- Open the Test Explorer.
- Select the Test and click Debug.
Attach debugger while using CLI
To attach Debugger while using CLI:
- Set
VSTEST_HOST_DEBUG
to1
. - Run
dotnet test
. The CLI outputs the process Id and waits for the debugger to be attached. - Copy the process Id.
- Go to Debug → Attach Process. Search for the process Id and attach.
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!