I am working on a multi-developer project and the application being developed is launcher through a launcher application which passes parameters such as the user logged in, their location, etc. Right now when I debug the application I set a breakpoint on the code that parses the input parameters and I assign the username variable my username etc.
I could hard-code these values but:
My question is:
Thanks in advance
When stopped in the debugger hover the mouse cursor over the variable you want to look at. The DataTip will appear showing you the value of that variable. If the variable is an object, you can expand the object by clicking on the arrow to see the elements of that object.
Yes u can if you have the authorization: while debugging do a doubleclick on the variable, the system'll show the name and the value of the variable, change the value and press CHANGE icon.
When I hit situations like this, I usually a combination of conditional compilation and environment variable / reg key. You can use these storage mechanisms to host your information without hard coding it into the application.
#if DEBUG
if ( null != Environment.GetVariable("CUSTOM_INFO")) {
userName = Environment.GetVariable("CUSTOM_USERNAME");
...
}
#endif
This way it won't affect any other developers. Unless of course, they want to accomplish the same thing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With