Re: Using gdb on a test

2020-06-15 Thread Wes McKinney
I also use gdb on the command line for all my debugging. I've always heard good things about CLion for visual debugging + breakpoints on Linux but I haven't invested the time to set it up. On Mon, Jun 15, 2020 at 10:10 AM Antoine Pitrou wrote: > > > I mostly only use gdb on crashes, otherwise I

Re: Using gdb on a test

2020-06-15 Thread Antoine Pitrou
I mostly only use gdb on crashes, otherwise I rely on unit tests and logical analysis. As for text editor, I use Kate. Regards Antoine. Le 15/06/2020 à 17:01, Maarten Breddels a écrit : > Thanks, that was it (ran the wrong history command). That running command > should have given a hint :)

Re: Using gdb on a test

2020-06-15 Thread Maarten Breddels
Thanks, that was it (ran the wrong history command). That running command should have given a hint :) Can I ask what people here use for debugging/editor? I'm settling on vscode, and using bare gdb for debugging. cheers, Maarten Op ma 15 jun. 2020 om 16:47 schreef Francois Saint-Jacques < fs

Re: Using gdb on a test

2020-06-15 Thread Francois Saint-Jacques
As Antoine said, debug mode is probably the most important configuration. You can also try the `relwithdebinfo` if you're trying to debug the optimized code. I'd also add the following: 1. Building out of conda provides a much better integration with gdb and the system's libstdc++ due to the prett

Re: Using gdb on a test

2020-06-15 Thread Antoine Pitrou
Hi Maarten, You should build in debug mode, i.e. pass -DCMAKE_BUILD_TYPE=Debug Regards Antoine. Le 15/06/2020 à 16:35, Maarten Breddels a écrit : > Hi all, > > I have trouble getting gdb working with a test suite. > Running e.g.: > $ gdb ./release/arrow-compute-scalar-test > I can't set a b