We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If the DEBUG env variable contains multiple items separated with spaces, then only the first one is used.
For example: export DEBUG="APP_X APP_Y APP_Z"
Then, only the APP_X is enabled for debugging. Other apps are ignored. This is due to the way the string is parsed:
In debug\src\common.js, line 169:
const split = (typeof namespaces === 'string' ? namespaces : '') .trim() .replace(' ', ',') .split(',') .filter(Boolean);
replace('', ',') changes only the first occurrence of space
So, to fix it you can use regexp:
const split = (typeof namespaces === 'string' ? namespaces : '') .trim() .replace(/ /g, ',') .split(',') .filter(Boolean);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If the DEBUG env variable contains multiple items separated with spaces, then only the first one is used.
For example:
export DEBUG="APP_X APP_Y APP_Z"
Then, only the APP_X is enabled for debugging. Other apps are ignored. This is due to the way the string is parsed:
In debug\src\common.js, line 169:
const split = (typeof namespaces === 'string' ? namespaces : '') .trim() .replace(' ', ',') .split(',') .filter(Boolean);
replace('', ',') changes only the first occurrence of space
So, to fix it you can use regexp:
const split = (typeof namespaces === 'string' ? namespaces : '') .trim() .replace(/ /g, ',') .split(',') .filter(Boolean);
The text was updated successfully, but these errors were encountered: