c++ - 使用输入文件进行 C++ lldb 调试
问题描述
我正在尝试使用 lldb 调试我的程序,因为在输入应该会的特定输入时出现分段错误。我通过文本文件给我的程序输入,通常我写这个命令来运行它:
./program <tests/test1.maze> program.out
如何在仍然传递文件的同时运行调试器?无法找到任何说明如何执行此操作的内容。
解决方案
(lldb) process launch -i <file>
使用 help 命令查看所有可用选项。
(lldb) help process launch
推荐阅读
- matlab - MATLAB 内连接两个表,将 NaN 条目视为相同
- node.js - Botpress v11 的松弛通道
- mongodb - 将 docker 容器连接到本地主机上的 mongodb
- scala - 为什么我打印希腊字符时 IntelliJ 的 scala 控制台会显示问号?
- javascript - 无法使打字稿打字匹配
- java - 需要小的 apache.org.tika 库(不是整个大的东西——tika.app.1.21.jar)来修复执行速度
- javascript - onmousemove 事件循环
- python-3.x - 将函数、类和变量导入其他模块 python 3.7?
- electron - Electron 不会在 package.json 中安装所有包
- r - 新变量的 If Else 语句