Skip to content

Commit 6d4bbe2

Browse files
Jeff Allenjeff-allen-mongo
authored andcommitted
(DOCSP-12779): console.log for playgrounds
1 parent 81b037c commit 6d4bbe2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

source/playgrounds.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,20 @@ of your playground.
131131
immediately above your selected section. Click this link to test and
132132
troubleshoot specific lines or sections of your playground.
133133

134+
Log to Console from a Playground
135+
--------------------------------
136+
137+
|vsce| supports the following methods to log messages to the console.
138+
Logged messages appear in the :guilabel:`Output` panel in VSCode.
139+
140+
- ``console.log()``
141+
- ``print()``
142+
- ``printjson()``
143+
144+
Logging to the console can be useful to track the output of certain
145+
commands in your playground, such as results after a particular query or
146+
aggregation.
147+
134148
Tutorials
135149
---------
136150

0 commit comments

Comments
 (0)