25 lines · cpp
1class Trivial {2public:3 Trivial(int input) : m_int(input) {}4private:5 int m_int;6};7 8class Foo {9private:10 Trivial m_trivial = Trivial(100); // Set the before constructor breakpoint here11 12public:13 Foo(int input) {14 ++input;15 }16 17private:18 Trivial m_other_trivial = Trivial(200); // Set the after constructor breakpoint here19};20 21int main() {22 Foo myFoo(10); // Set a breakpoint here to get started23 return 0;24}25