You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "amoeba (via GitHub)" <gi...@apache.org> on 2023/10/24 20:46:35 UTC

Re: [I] flight FlightServerBase debugging with breakpoints not working [arrow]

amoeba commented on issue #38435:
URL: https://github.com/apache/arrow/issues/38435#issuecomment-1778011269

   Hi @xshirax, can you provide a reproducible set of steps to help us diagnose where things are going wrong? I am able to hit breakpoints in C++ code when running a Python script through my debugger so long as I set things up right. A rough sketch of how I did this is:
   
   1. Built libarrow (Arrow C++) from a recent source checkout with the `ninja-debug-flight` preset and installed into a conda environment. See [the Python docs](https://arrow.apache.org/docs/developers/python.html#building-on-linux-and-macos) for more detail.
   2. Built and installed PyArrow into that conda environment. See [the Python docs](https://arrow.apache.org/docs/developers/python.html#building-on-linux-and-macos) for more detail.
     2a. `python setup.py build_ext --inplace --build-type=debug`
     2b. `pip install -e . --no-build-isolation`
   3. Created a minimal Flight server based on the [Python Cookbook](https://arrow.apache.org/cookbook/py/flight.html#simple-parquet-storage-service-with-arrow-flight)
   4. Ran `lldb python -- flight_server.py`
   5. Set a breakpoint on `arrow::flight::FlightServerBase::Serve`. No locations should be found yet as we haven't loaded PyArrow but lldb will pick them up.
   
   I use LLDB here but I expect gdb would work just as well. Can you look through my steps to see where we don't match up?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org