Print function in vscode extension is missing

I have installed the VS Code entension for Mongo. Unfortunatelly the print function that I can use in CLI is missing here. How can I print something to the console for debug purposses?

The print() function is there and it should work. Can you share the code you are trying to run?

Note that print and console.log will print in the VS Code Output panel, while the result of the playground is displayed in an editor.

I expected to see the text in Playground Result, not in Output window. Thank you :slight_smile:
Is there any way to debug inside $accumulation stages? E.g

$accumulator:{
    init: function() { 
      print('init function')
      return {result:0}; 
  },
  //...

No, unfortunately that does not work. That function is executed by the server.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.