我正在尝试使用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
请帮忙。非常感谢。