Unimplemented console API: undefined, error in debugging Visual Studio code

After updating my Windows, I now encounter an error while debugging the Ionic App in Visual Studio Code. Each time it passes the console.log statement, it prints the error "Unimplemented console API: undefined". Do you have any ideas on how to fix it?

+5
source share
1 answer

There is a bug in vscode-chrome-debug as indicated by Jimmy Thomson on the Github Issue page!

Here is the Dirty fix from Jimmy Thomson:

  • Go to the vscode extension directory: C: \ Users \ .vscode \ extensions \ or ~ / .vscode / extensions, then go to vsmobile.cordova-tools-1.2.3 / node_modules / vscode-chrome-debug-core / out / src / chrome / and open consoleHelper.js.
  • Look at line 37 for outputText = 'Unimplemented console API:' + m.type;
  • change this to outputText = 'Unimplemented console API:' + JSON.stringify (m);
0
source

Source: https://habr.com/ru/post/1258751/


All Articles