pvardanis opened a new issue, #36844:
URL: https://github.com/apache/arrow/issues/36844

   ### Describe the usage question you have. Please include as many useful 
details as  possible.
   
   
   I'd like to be able to set breakpoints in my `flight.FlightServerBase` 
subclass to be able to debug my code. Currently, I instantiate a local server 
and a client in pytest like this:
   
   ```python
   @pytest.fixture(scope="session")
   def test_client():
       with InferenceFlightServer(address) as _, FlightClient(address) as 
client:
           yield client
   ```
   
   and using the client to call a `do_exchange` function:
   
   ```python
   writer, reader = test_client.do_exchange(descriptor)
   ```
   
   However, I cannot make my debugger stop in any of the breakpoints within the 
subclass. What I'm looking for is something similar to how flask `test_client` 
[works](https://flask.palletsprojects.com/en/2.2.x/testing/), that makes it 
possible to debug the service endpoints.
   
   Here's my `launch.json` config:
   
   ```json
   {
       // Use IntelliSense to learn about possible attributes.
       // Hover to view descriptions of existing attributes.
       // For more information, visit: 
https://go.microsoft.com/fwlink/?linkid=830387
       "version": "0.2.0",
       "configurations": [
           {
               "name": "Python: Current File",
               "type": "python",
               "request": "launch",
               "program": "${file}",
               "console": "integratedTerminal",
               "justMyCode": false
           }
       ]
   }
   ```
   
   ### Component(s)
   
   Python


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to