Overview
Features
Settings
Include file name
The includeFilename setting allows you to include the file name in log messages, helping you quickly identify the source of logs. This setting is useful for debugging complex projects where multiple files generate logs, making it easier to trace their origins.
Usage
To enable the Include Filename setting:
Go to VS Code settings: File → Preferences → Settings (or Code → Preferences → Settings on Mac). Search for includeFilename and toggle it on.
In your code:
Once enabled, Turbo Console Log will add the file name to log messages. Example output:
console.log('🚀 ~ myComponent.js → SelectedVariable:', SelectedVariable);
The includeFilename setting enhances debugging by showing the file where logs originate. This setting is disabled by default.