Skip to main content
No Result Found

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:

  1. Open the Test Explorer.
  2. Select the Test and click Debug.

Attach debugger while using CLI

To attach Debugger while using CLI:

  1. Set VSTEST_HOST_DEBUG to 1.
  2. Run dotnet test. The CLI outputs the process Id and waits for the debugger to be attached.
  3. Copy the process Id.
  4. Go to DebugAttach 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





Thank you for your valuable feedback

Is this page helping you?

Yes
No

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!

Talk to an Expert
Download Copy Check Circle