Use GDB to debug a C++ program called from a shell script

前端 未结 6 1702
自闭症患者
自闭症患者 2020-12-24 13:18

I have a extremely complicated shell script, within which it calls a C++ program I want to debug via GDB. It is extremely hard to separate this c++ program from the shell si

6条回答
  •  别那么骄傲
    2020-12-24 13:51

    In addition to options mentioned by @diverscuba23, you could do the following:

    gdb --args bash 
    
                                     
                  
提交回复
热议问题