Overview

Motivation

Statistics

Features

Insert a log message

Comment inserted log messages

Uncomment log messages

Delete log messages

Correct log messages

Settings

Custom Prefix

Custom Suffix

Log Function Type

Log Function Name

Custom delimiter

Custom quote

Use semicolon

Enclosing class

Enclosing function

Include file name and line number

Include file name

Include line num

Wrap log message

Line before log message

Line after log message

Join the Turbo Tribe

30% Off

Subscribe to our newsletter to receive the latest updates, contribute to Turbo's future through surveys, and get an automatic 30% discount on Turbo Pro!

Get Latest Updates

Shape Turbo's Future

30% Off Turbo Pro

Get 30% off • Shape the future • Zero spam

Include line num


The includeLineNum setting allows you to include the line number in log messages, making it easier to pinpoint the exact location of each log message. This is especially useful for debugging complex codebases, Providing accurate tracking of log locations for efficient debugging.


Usage

  1. To enable the Include Line Number setting:

    Go to VS Code settings: File → Preferences → Settings (or Code → Preferences → Settings on Mac). Search for includeLineNum and toggle it on.


  2. In your code:

    Once enabled, Turbo Console Log will append the line number to log messages. Example output:

console.log('🚀 ~ :42 → SelectedVariable:', SelectedVariable);

Enabling includeLineNum improves debugging by displaying the exact line number where logs are generated. This setting is disabled by default.