I am using KDevelop as IDE for my C++ program. I have an array char buffer[1024] in my program. After reading data to buffer, I would like to check it manually. But in the left panel, I need to read the array character by character. Is there some way by which I can get the content of the array at a stretch?
How to view values of variables in KDevelop?
2.8k views Asked by Jackzz At
2
Use GDB tool view available in KDevelop. In KDevelop 4.6,
Window->Add ToolView->GDBwill open theGDBtool view at the bottom/left/right ofKDevelop IDE. Debug your program and at the point at which you have to check value of the variable, enterprint variable_namein the textbox corresponding toGDB cmd. The value of variable will be printed.Some example commands:
Show an array (will show first 200 elements by default):
Show an array range buffer[index]@count: