Attribute 'program' does not exist ('c:\...app.js
Posted: Fri Oct 07, 2016 7:27 pm
I cannot debug. Error: Attribute 'program' does not exist ('c:\wamp64\www\phpmyfaq/app.js') I have:
I googled, one solution was to point to server.js in launch.json. That didn't solve the problem - I don't have app.js nor server.js anywhere. How to get them? Or, any other solution? (I'm a .net person, so this is all new to me.)
Thanks!
- phpmyfaq-2.9.5
wampserver3.0.6
win7
VSCode 1.5.3
Xdebug v2.4.1
Node.js v4.6.0
Code: Select all
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/app.js",
"stopOnEntry": false,
"args": [],
"cwd": "${workspaceRoot}",
"preLaunchTask": null,
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "development"
},
"console": "internalConsole",
"sourceMaps": false,
"outDir": null
},
{
"name": "Attach",
"type": "node",
"request": "attach",
"port": 5858,
"address": "localhost",
"restart": false,
"sourceMaps": false,
"outDir": null,
"localRoot": "${workspaceRoot}",
"remoteRoot": null
},
{
"name": "Attach to Process",
"type": "node",
"request": "attach",
"processId": "${command.PickProcess}",
"port": 5858,
"sourceMaps": false,
"outDir": null
}
]
}
Thanks!