Forum Replies Created
-
AuthorPosts
-
January 16, 2016 at 09:05 in reply to: Unable to debug std::map when cmake is configured with flag -std=c++11 #7487marrtinParticipant
Hi
I will very satisfied if you will support that. It is very important feature for all projects in our company.
Thanks
January 14, 2016 at 08:33 in reply to: Unable to debug std::map when cmake is configured with flag -std=c++11 #7475marrtinParticipantHi
Ok let me divide this problem on two separate. The second breakpoint problem occurs today no more in my application. It occured probably when sometimes run the debugged service twice in my enviroment (on instance with GDB and on instance without GDB – Clients had then two same services). VisualGDB was 99.9% not the cause. Sorry Sorry.
Now the first problem which I would like to fix. I hope that this helps more people because I am sure that this is very useful feature. So here is my sample code
typedef std::map< int32_t, std::string > HandleValueMap;
int main( int argc, char* argv[] )
{
HandleValueMap h = {{1,"ss"},{2,"xx"}};
int k = 0;
}
I hit the breakpoint in the first line. I sent you gdb.log for gdb commands and gdb1.log for gdb answer until breakpoint was hit. Then I cleared log and I stepped over to the second line and I sent you gdbr.log for gdb commands and gdbr1.log for gdb answer. The Gdb log files was sent on your support email. I am unable to find here how to attach file.
I hope that this helps.
ThanksmarrtinParticipantThanks for your comment.
I noticed that Clang intellisense looks very nice for me. And there aren’t such problems with c++11.
But it is also disturbing often to see dialog CppEngineHost has stopped working. It didn’t cause the crash of Visual studio but my trust to this intellisense engine is at that moment less :).
marrtinParticipantIt would be very useful to fix this problem. Clang intellisense often crash in my project, so I am using native intellisense.
Although the codemaps when Clang is used are great :(.
Is there really no another possibility to define #define __cplusplus 201103L in gcc_Debug.h correctly?
Now I have to use iva’s solution with undef, but I have to do it everytime, when I change something in VisualGDB settings.
Of course it’s confusing.
January 8, 2016 at 08:08 in reply to: Unable to debug std::map when cmake is configured with flag -std=c++11 #7447marrtinParticipantI am not an expert how does GDB works, so hopefully you will explain me this.
The same GDB called from other IDE for example QtCreator is able to print it.
I want to use Visual Studio it’s the best IDE for me, but now I have to sometimes switch on Qt creator on my remote machine when I need to debug similar problems.
How can the second tool to print the typedefs correctly?
I have now commercial version of VisualGDB, so I am using it as my primary tool.
2.Yesterday I found another interesting problem.
I have initialization function in my class where some objects are created by using new operator. When I give the breakpoint in this init function where the certain object is created (by using new operator) and then I step into new operator and in the object’s constructor I can debug it without problems.
But when I have no breakpoint in my init function and I let the breakpoint only in object’s constructor, this breakpoint is never hit.
I don’t know why?
January 7, 2016 at 16:35 in reply to: Unable to debug std::map when cmake is configured with flag -std=c++11 #7438marrtinParticipantNow it’s possible to debug the maps which are declared without typedef
Snippet
std::map<int32_t, std::string> myMap; // this is printed in debugger well
But the typedef are used for maps very often. Our project contains lot of typedefs for containers
when I trye to debug something like
Snippet
typedef std::map< int32_t, std::string > HandleValueT;
no pretty output is still printed in debugger
-
AuthorPosts