使用ElectronJs的VSCode:正在运行但是console.log没有记录

时间:2016-05-18 09:35:08

标签: visual-studio-code electron

我正在尝试使用VSCode调试electron.js应用程序。为了做到这一点,我已经在 QPixmap img_scene(namefile); img_scene=img_scene.scaled(my_height,my_width); scene->addPixmap(img_scene);

下面给出了
launch.json

问题

调试器在断点处停止,但{ "version": "0.2.0", "configurations": [ { "name": "Launch", "type": "node", "request": "launch", "program": "${workspaceRoot}/main.js", "stopOnEntry": false, "args": [], "cwd": "${workspaceRoot}", "preLaunchTask": null, "runtimeExecutable": "${workspaceRoot}\\node_modules\\electron-prebuilt\\dist\\electron.exe", "runtimeArgs": [ ".", "--enable-logging" ], "env": { "NODE_ENV": "development" }, "externalConsole": false, "sourceMaps": false, "outDir": null }, { "name": "Attach", "type": "node", "request": "attach", "port": 5858, "address": "localhost", "restart": false, "sourceMaps": false, "outDir": null, "localRoot": "${workspaceRoot}", "remoteRoot": null } ] } 未在调试控制台中打印。

但调试控制台不为空。它的说法......

console.log

请帮忙。非常感谢。

0 个答案:

没有答案