I use Xcode 6.1 to debug my C ++ code, and I found that some local variables do not appear in the debug area even when I use the "All Variables" option.
I am wondering how to add these variables to the debug list?
Or how to print these missing variables on LLDB? I tried with po test, but he said:
po test
error: use of undeclared identifier 'test'
Would I rather switch to the Eclipse IDE for C ++?
By the way, I'm using CMake to create an Xcode project, so maybe I will miss something in debug mode? I remembered that if I use gcc, I need the -g option, do I need it when I use CLang?
Xcode works well enough to encode C ++ from code completion and highlighting the point of view, second only to Visual Studio, but debugging through Apple lldb will be very successful or skipped. The templates will be the worst, often you will get errors about the inability to materialize the target or other archaic, rabid errors related to the debugger, confused about what you ask or cannot find functions.
Unfortunately, this was the case for several versions, and it seems that C ++ is in second place in objective-c, and it will probably be fast too; this probably will not be fixed.
You probably won't have a better time with Eclipse, and you will sacrifice a lot of code completion, profiling, static analysis, etc.
- , , . , , , , . 21- , , , std:: cerr: (
"undefined", , , , . -O0 , . , , , :
int test = 0;
(, -), , . clang, gcc.
. lldb . "p" ( , ..). .
- "-", . " ", . , , .., .
, "frame variable", "p" , , , , bugreporter.apple.com, d .
" ", , , , . , , -O0, . , , , , , .
Source: https://habr.com/ru/post/1569502/More articles:With setuptools, when do __init__.py namespace packages disappear? - pythonΠΡΠ»ΠΈ ΠΎΠ±ΡΠ°Π±ΠΎΡΡΠΈΠΊΠΈ ΡΠΎΠ±ΡΡΠΈΠΉ JavaScript Π±ΡΠ΄ΡΡ ΠΏΡΠΎΠ²Π΅ΡΠ΅Π½Ρ Π½Π° Π΅Π΄ΠΈΠ½ΠΈΡΡ - javascriptUnable to get Ruby 2.x cucumber on Windows - windowsPython inverse formula - Vincenty doesn't converge (finding the distance between points on Earth) - pythonFast tile installation / laying method - algorithm3D bending 3D.js - javascriptBending a text object in ThreeJS - javascriptBinding strings from a .resw file using ReswFileCodeGenerator in XAML - c #ΠΡΠΈΠ±ΠΊΠ° ΠΏΡΠΈ ΠΊΠΎΠΌΠΏΠΈΠ»ΡΡΠΈΠΈ ΠΌΠΎΠ΅ΠΉ ΡΠ΅ΠΌΡ Ρ vaadin 7.3 ΠΈ valo theme - javaAndroid viewpager as a carousel - androidAll Articles