[英]How to include the percent character in the visual studio debugger command line arguments?
I want to debug a program in Visual Studio 2010 SP1 with an argument like: "file-%04d.jpg".我想在 Visual Studio 2010 SP1 中调试一个程序,参数类似于:“file-%04d.jpg”。
But entering this string in Project Properties > Config Properties > Debugging > Command Arguments changes the "%04", resulting in argv[1]
being set to: "file-[some unknown symbol]d.jpg".但是在Project Properties > Config Properties > Debugging > Command Arguments 中输入这个字符串会改变“%04”,导致
argv[1]
被设置为:“file-[some unknown symbol]d.jpg”。
The percent character seems to be interpreted as an escape sequence which is not what I want.百分比字符似乎被解释为转义序列,这不是我想要的。 This does not happen in 2008.
这在 2008 年不会发生。
%xx seems to be interpreted as an ascii escape. %xx 似乎被解释为 ascii 转义。 So %25 should result in a real % character in the argument list.
所以 %25 应该在参数列表中产生一个真正的 % 字符。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.