Home > Back-end >  Dev - C, debug cannot view string???????
Dev - C, debug cannot view string???????

Time:12-02

To debug a program, click on the Next line has no effect, a face of meng,
Then did an experiment, found that as long as write the string, can't do the Next line, let alone to check the content of the string, I this is where the problem, solving the

CodePudding user response:



Not very know what you mean, I'm debugging here no problem, C - type and String can be seen

CodePudding user response:

I can't , add view STR results shown on the Debug STR
STR={
The static npos=& lt; Optimized out>
_M_dataplus={... }
_M_p=0 by 8 "error: always access the memory at address 0 by 8 & gt;

Just show the STR for these three lines, and the Next line, click no, if just write an a + b (int), everything is ok,,,

CodePudding user response:

GCC optimization options - o0 instead

CodePudding user response:

In addition, your purpose is to want to compare two strings, the string (8), string (888), instantiate the two objects, it is not necessary to have to write an array

CodePudding user response:

reference 4 floor huojinmeng response:
to GCC optimizations instead - o0

Thank you for your answer, could you speak more specifically? Don't understand, ha ha, there is string comparison experiment on the ground floor)
  • Related