How to get the full string value of a variable in a VC6 viewport?

I want to get the full value of the char [] variable in the VC6 viewport, but it only shows the truncated version. I can copy the value from the debug memory window, but it contains mixed strings of hexadecimal and string values. Of course, is there a better way?

+5
source share
6 answers

For large lines, you are pretty much stuck in the memory window - the tooltip will eventually be clipped.

Fortunately, data is easy to get in the memory window - I usually show it in 8-byte chunks, so it’s easy to manage, find string data and cut and paste the lot into an empty window, and then use alt + drag to select the columns and remove the hexadecimal values. Then start at the bottom of the line and constantly create / delete (new line) to create your own line (I use a macro for this bit).

I don't think there is a better way when you get long lines.

+3
source

Click to shove, you can put the clock

given

char bigArray[1000];

watch:

&bigArray[0]
&bigArray[100]
&bigArray[200]
...

or change the index to where in the line you want to look ...

Its clumsy, but it worked for me in the past.

+1
source

VC6, . , , , ,

(char*)textArray;

.

bettter : VS2008 , . Express Edition VS2008 , , , . VC6 VS2008 . VS2003 . 5 , VC6. VC6 , VS2003.

+1

, , - + 50, + 100 ..

Eugene Ivakhov wrote addin for msvc 6, which allows you to display the full line in the edit window.

+1
source

There's a nice plugin for VC6 called XDebug . It adds a dialog to view various types of strings. This worked great for me.

+1
source

It’s possible to get used to creating log files and directly write the output to a file, and then open it in your favorite text editor.

0
source

All Articles