Error debugging C code in vscode (with WSL)

Asked

Viewed 25 times

0

Hello, I am having a problem debugging a code written in C, I am using Visual Studio Code (integrated to WSL), the problem occurs when calling Strtok function, if run without debug, the code runs normally.

Follow the error below:

Unable to open 'strtok_r.c': Unable to read file 'vscode-remote://wsl+ubuntu/build/glibc-eX1tMB/glibc-2.31/string/strtok_r.c' (Error: Unable to resolve non-existing file 'vscode-remote://wsl+ubuntu/build/glibc-eX1tMB/glibc-2.31/string/strtok_r.c').

inserir a descrição da imagem aqui

BigFloat strToBigFloat(char line[MAX_LINE]){
BigFloat bf = {0};

char *part;
part = strtok(line, "."); // Quando o debug chega nessa parte, ocorre o erro.
int len = strlen(part) / 9;
int end = 0;
int aux = 0;
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.