title: How to hook into lldb?
body: <p>The main open ended question is: how to use LLDB with languages that transpile to C/C++. What I want is to hook into default LLDB functions with python script, so that it</p>
  
  <ul>
  <li>intercepts symbol demangling, so that lldb shows nicer function names in stack trace and nicer local/global variable names.</li>
  <li>intercepts data formatting to handle types whose names are not known in advance and thus cannot be handled by <code>type summary add</code>. The "matching" should be performed by inspecting the struct.</li>
  <li>intercepts "create breakpoint" request, coming for the original language file, which is not C/C++ to map it to the correct source/line.</li>
  </ul>
  
  <p>The ultimate goal is to provide a python script to LLDB to support that, so that numerous UI LLDB frontends (XCode, VSCode, etc) would automatically benefit from that.</p>
  
  <p>EDIT: I have managed to solve the type question by getting all types from all SBCompileModules, inspecting them, and providing syntetic formatters. Symbol "demangling" and breakpoints mapping is still the question.</p>