Breakpoint on a line with multiple instructions


I saw that feature in Rider but i really lack this in CLion. Use case is simple: given a line with multiple instructions  

connect(something, &Something::Foo, this, [](){ std::cout << "want debug here"; });

and i want to set a breakpoint inside the lambda instruction but CLion is only able to set on `connect` instruction which is not what i need

1 comment


As far as we know, this is impossible for C++ currently. Simply because compilers do not give out enough information: they only provide associations between instructions and line numbers, but does not provide a range inside a line.


Please sign in to leave a comment.