debugging

How can I log the command I typed in GDB?

ⅰ亾dé卋堺 提交于 2020-08-26 04:40:51
问题 In GDB, I can turn logging on with "set logging on", but this only logs the results of my commands, and not the command itself. It would be useful if I could see the command typed as well. Is there any way to log the command typed? 回答1: Try man script . See also this ancient bug. The fact that this hasn't been fixed in 10 years makes me believe that it's unlikely to ever be fixed. Most GDB developers use emacs , run GDB from inside of emacs , and get the functionality you desire "for free".

How can I log the command I typed in GDB?

坚强是说给别人听的谎言 提交于 2020-08-26 04:40:10
问题 In GDB, I can turn logging on with "set logging on", but this only logs the results of my commands, and not the command itself. It would be useful if I could see the command typed as well. Is there any way to log the command typed? 回答1: Try man script . See also this ancient bug. The fact that this hasn't been fixed in 10 years makes me believe that it's unlikely to ever be fixed. Most GDB developers use emacs , run GDB from inside of emacs , and get the functionality you desire "for free".

How to debug external library code in Visual Studio Code?

不羁的心 提交于 2020-08-25 12:47:24
问题 I'm using Visual Studio Code in a basic C++ project. I link a library built with gcc -g option to include the debug symbols information. However, when I want to step into a function call from that library it doesn't get in. In Visual Studio this How to debug external class library projects in visual studio? would solve the problem but I don't know how to do it in Visual Studio Code. Probably source files for that library should be specified somewhere? But where can I specify them? 回答1: Debug

How to debug external library code in Visual Studio Code?

安稳与你 提交于 2020-08-25 12:34:53
问题 I'm using Visual Studio Code in a basic C++ project. I link a library built with gcc -g option to include the debug symbols information. However, when I want to step into a function call from that library it doesn't get in. In Visual Studio this How to debug external class library projects in visual studio? would solve the problem but I don't know how to do it in Visual Studio Code. Probably source files for that library should be specified somewhere? But where can I specify them? 回答1: Debug