Nick____9
Nick____9

Reputation: 71

C++ lldb debug with input file

I'm attempting to debug my program with lldb beacuse I'm getting a segmentation fault when entering a specific input that should would. I give my program the input through a text file and normally I write this command to run it:

./program <tests/test1.maze> program.out

How do I run the debugger whilst still passing in the file? Haven't been able to find anything that says how to do this.

Upvotes: 1

Views: 511

Answers (1)

JWashington
JWashington

Reputation: 21

(lldb) process launch -i <file>

Use the help command to view all available options.

(lldb) help process launch

Upvotes: 2

Related Questions