how do I set a breakpoint in C++ template code?

I have a lot of C++ template libraries. When I set breakpoints in C++ template code Xcode ignores them. Any clues?

I have a partial answer -- looks like a pathname issue.


I have a header file with C++ template code. When I click in the gutter to set a breakpoint in the header file Xcode generates an absolute pathname for the file:


br s --file /Users/olea/code/mjaal/private/libs/src/perc/src/perc/pexp/parse/pexp_parser.hpp --line 183

This location is never resolved:


2: file = '/Users/olea/code/mjaal/private/libs/src/perc/src/perc/pexp/parse/pexp_parser.hpp', line = 183, exact_match = 0, locations = 0 (pending)


But if I manually set the breakpoint in lldb like this:


br s --file pexp_parser.hpp --line 183

It works -- the breakpoint is resolved, and it is hit during exection:

Breakpoint 3: where = perc_unit_test`mjaal::perc::pexp_parser<mjaal::perc::pexp_scanner<mjaal::basic_sstream_input_buffer<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, mjaal::perc::pexp_sad_eval<int, char, std::__1::char_traits<char> >, int>::more_factor() + 153 at pexp_parser.hpp:183, address = 0x000000010001dba9


A bit more cumbersome than just clicking in the gutter of the source line where I want the breakpoint, but much better than nothing.

how do I set a breakpoint in C&#43;&#43; template code?
 
 
Q