Can GDB debug C++ lambdas?

后端 未结 3 492
小鲜肉
小鲜肉 2021-02-07 02:48

I use C++ 11 features actively. I have program created in Visual Studio 2013 that relies on lambdas to run multiple threads (lambda represents task, and thread receives lambda i

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-07 03:08

    Step into Lamba's .run() go next/step (jump initializations) until the following call:

    std::forward<>(args)(...)
    

    Step into this one. It will lead you to you lambda body code.

提交回复
热议问题