I routinely have to look at byte [1024]
and longer in the debugger (VS 2008). At least by default, it shows 15 items. I have 23" widescreens that could display 3 or 4 times that vertically. Does anyone开发者_开发知识库 know how to get more items to display (if it is possible)?
Clarification
This is primarily for C# code and I am mostly interested in the inline debugger window (the one that appears with a +
when you hover over an object in your code).
If you're using C++ use the ,
format specifier in the debugger to list the count of elements to display
theValue,42
The full set of format specifiers for C++ is available here
- http://msdn.microsoft.com/en-us/library/75w45ekt(VS.71).aspx
You can write a custom debug visualizer to do this.
I usually use a static class for quick and dirty watches:
public static class DbgUtil{
public static string DisplayFrom(Array array,int start,int end){
/// you get the idea
and set a watch or immediate window expression to DbgUtil.DisplayFrom(0,3,foo)
Maybe Mole can help you
精彩评论