ros-industrial / ros_qtc_plugin

ROS Qt Creator Plug-in (https://ros-qtc-plugin.readthedocs.io)
398 stars 214 forks source link

FAILED: Preventing Qt Creator form stepping into Boost, Eigen, gtest, stl #391

Open lusu8892 opened 5 years ago

lusu8892 commented 5 years ago

Hi Levi

I copied and pasted your scripts in to "Additional startup commands" for GDB, however when I click step into, the debug still goes into those library, not directly into my own code.

Levi-Armstrong commented 5 years ago

Did you install the custom version of gdb?

lusu8892 commented 5 years ago

Are you saying install GDB from https://github.com/Levi-Armstrong/gdb-7.7.1? If so, then yes, I cloned it into local, then config, and installed.

Levi-Armstrong commented 5 years ago

Did you update your kit in qt creator to point to this debugger? Tools>Options>Kits>Debugger

lusu8892 commented 5 years ago

Inside Tools>Options>Kits>Debugger, two GDB are there: One is at /usr/bin/gdb, the version is 7.11.1 Another is at /usr/local/bin/gdb, the version is 7.7.0, I think this is the one I installed from your repo. Should it be 7.7.1? These two are all auto-detected by QT.

When I install your GDB, I git cloned to /home/user/Download folder, and unzip, checkinstalled there. I remember it just installed in Download/gdb-7.7.1-master folder. I not sure this is right way to do so.

I also manually add one from /home/user/Downloand/gdb-7.7.1-master/gdb to QT and hight this GDB and clicked apply button, then OK. After this, I tried debugging the code, and still the same problem.