简体   繁体   English

如何在 Visual Studio 调试器命令行参数中包含百分比字符?

[英]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.

相关问题 在Visual Studio中进行调试时,如何扩展命令行参数? - How to expand command-line arguments when debugging in Visual Studio? 在 Visual Studio 2010 中传递命令行 arguments? - Passing command line arguments in Visual Studio 2010? Visual Studio用于运行MsTest的命令行参数是什么? - What command line arguments does Visual Studio use for running MsTest? 有没有办法在Visual Studio 2010的工具栏中获取命令行参数 - Is there any way to get Command Line Arguments in the toolbar in Visual Studio 2010 如何使Visual Studio使用/ RunExit并提供程序的命令行参数? - How can I get Visual Studio to use /RunExit and provide my programs command line arguments? 将参数传递给Visual Studio的XSLT调试器 - Passing arguments to Visual Studio's XSLT debugger 命令行参数可在Visual Studio中使用,但不适用于Visual Basic中WindowsForm项目的命令行 - command line arguments works in visual studio but not from command line for a WindowsForm project in Visual Basic 如何在Visual Studio调试器中使用F#中的#line编译器指令? - How will the #line compiler directive in F# be used in the Visual Studio debugger? Visual Studio 2010调试器指向错误的行 - Visual Studio 2010 debugger points to wrong line 如何禁用Visual Studio调试器? - How to disable Visual Studio debugger?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM