M.A.
M.A.

Reputation: 41

CodeLite Debugger doesn't open files

My linux executable works fine when I run it directly or using gdb

but when I'm using codelite, at this statement

fp = fopen("../../../../../data/data.csv", "r");

it returns NULL for fp, looks like CodeLite cannot figure out where the file is,

Do I need to set some kind of an environmental variable ?

Upvotes: 0

Views: 361

Answers (1)

M.A.
M.A.

Reputation: 41

Just set the working directory to the same directory where you have the executable

Upvotes: 1

Related Questions