© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
1 reply
guacjack

❔ Environment variables in tests

Hello,

I'm coming from a Java background here, or rather IntelliJ background where for any given Run Configuration (in this case a unit test) I can set any command line variables or environment variables.

The reason im wanting to do this is i want to set debug mode for Playwright so that i can record my clicks for the test. I was not able to find a way to do this via Visual Studio.

Basically, just to debug a test, i'm wanting to set
PWDEBUG=1
PWDEBUG=1
as an environment variable in the IDE so that the Playwright popup shows.

Thanks
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Get Environment Variables...
C#CC# / help
4y ago
Environment Variables/Persistent Values in OpenSilver
C#CC# / help
3y ago
❔ Can't change environment variables in Rider
C#CC# / help
3y ago
EF Core and environment variables
C#CC# / help
2y ago