Attribute 'program' does not exist ('c:\...app.js

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
neubee
Posts: 1
Joined: Fri Oct 07, 2016 6:40 pm

Attribute 'program' does not exist ('c:\...app.js

Post by neubee »

I cannot debug. Error: Attribute 'program' does not exist ('c:\wamp64\www\phpmyfaq/app.js') I have:
  • phpmyfaq-2.9.5
    wampserver3.0.6
    win7
    VSCode 1.5.3
    Xdebug v2.4.1
    Node.js v4.6.0
launch.json:

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
        }
    ]
}
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!
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Attribute 'program' does not exist ('c:\...app.js

Post by Thorsten »

Hi,

there is no app.js in phpMyFAQ, I don't know what causes this issue.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply