eecs280staff / tutorials

Tools and tutorials
https://eecs280staff.github.io/tutorials/
Other
5 stars 4 forks source link

Simplify CodeLLDB input redirection #91

Closed awdeorio closed 1 year ago

awdeorio commented 1 year ago

Use the simpler version of input redirection for the Code LLDB extension on macOS.

Validation

Check if this works on a mac with CodeLLDB and EECS 280 Project 1 main.exe with input redirection.

github-actions[bot] commented 1 year ago

The spec from this PR is available at https://preview.sesh.rs/previews/eecs280staff/tutorials/91/.

(Available until Sat Feb 18 2023.)

ohjuny commented 1 year ago

I get error on the launch.json file that reads "Property stdio is not allowed."

I am still able to click Run on the debugger, but it seems to block when user input is required (does not use the stdio argument in launch.json).

awdeorio commented 1 year ago

I get error on the launch.json file that reads "Property stdio is not allowed."

Just double-checking: are you using the CodeLLDB extension?

ohjuny commented 1 year ago

Yikes, I was not... Just installed and tried it again - it works!

awdeorio commented 1 year ago

If you made this mistake, imagine how many more students might do the same! I added a pitfall, take a look 14cd9bead9bfeecba5419eedcdcac89f6a321102

Also added a link to the CodeLLDB stdio configuration docs.