Visual Studio Debugger - Automatic Variable Assignment -
I am working on a multi-developer project and the app developer is Launcher through the Launcher app, Such as users log in, their location etc. Right now when I debug an application, I set the breakpoint of the code parsing the input parameters and I assign the user name to my user name.
I have a hard-code value of this:
- I believe this is bad behavior
- I'm worried that the file should be used by our VCS And have devastating wave effects.
- Many developers are working on the project, so my name, location assignment etc. Hard-coding is not really an option.
- I can not read the file because it is in active development and I need to get the updated version of the file which is constantly asked.
My question is:
- Is there an underlying method or extension to automatically assign value to debug mode, right now I have the variable Highlighting and typing my text, can it be automated?
Thank you in advance
When I use these conditions Hit, I usually combine conditional compilation and environmental variable / regga key. You can use these storage mechanisms to host your information without any effort.
# If DEBUG (empty! = EnvironmentalGet variable ("CUSTOM_INFO")) {user name = environment. GetVariable ("CUSTOM_USERNAME"); ...} #endif
In this way it will not affect any other developer. Of course, they want to fulfill the same thing.
Comments
Post a Comment