在调试/单步执行代码时,如何修改局部变量的值? 它很容易与视觉工作室,但我似乎无法找到如何在sharpdevelop 4.0中做同样的事情
How does one modify the value of a local variable when debugging/stepping through the code? Its easy enough with visual studio but I cannot seem to find out how to do the same thing in sharpdevelop 4.0
最满意答案
对于整数和布尔值等类型,您可以更改“局部变量”窗口(“视图”|“调试”|“局部变量”)中的值。 您可以单击值列并更改变量的值。
对于字符串和引用类型,“局部变量”窗口不支持编辑它们的值。 相反,您可以使用控制台窗口(View | Debug | Console)。 然后,您可以通过编写assign语句并按返回键来更改变量的值。
For types such as integers and booleans you can change the value in the Local variables window (View | Debug | Local variables). You can click into the value column and change the variable's value.
For strings and reference types editing their values is not supported in the Local variables window. Instead you can use the Console window (View | Debug | Console). You can then change the variable's value by writing an assign statement and pressing the return key.
更多推荐
发布评论