Skip to content

Pitfall: environment variables #244

@awdeorio

Description

@awdeorio

Environment variables like CXX and CXXFLAGS can cause problems with the VS Code tutorial. Add Troubleshooting subsection to check for them.

A specific example that I've seen is CXXFLAGS=-O2 ... set by some Anaconda-like (can't remember the name) Python install from source. When the student used our Makefile, the environment-provided CXXFLAGS compiled with optimization and without -g. When the student completed the lab2 debugging tutorial, they got dumped into ASM code instead of a nice "stop on the line where the program failed". TAs had trouble figuring this one out.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions