Code Monkey home page Code Monkey logo

Comments (3)

thetutlage avatar thetutlage commented on May 23, 2024 3

I am not sure how exactly Vscode debugger works, but adonis serve --debug is the command that starts the debugger to be used with Chrome devtools.

After doing a quick google search I believe you need to do following.

  1. Inside .vscode/launch.json file, set program: ${workspaceFolder}/server.js
  2. Do not start the server using adonis serve, since Vscode will start it for you once it will require the server.js file.

from adonis-cli.

alanaasmaa avatar alanaasmaa commented on May 23, 2024

I don't remember excaxtly but i had some problems also when i launched the server from VsCode so i prefer to attach.

I will try to run server via vscode again, maybe i can recall what the problem was.

Here is my full vscode and im using the attach method.

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch",
            "type": "node",
            "request": "launch",
            "program": "${workspaceRoot}/server.js",
            "stopOnEntry": false,
            "args": [],
            "cwd": "${workspaceRoot}",
            "preLaunchTask": null,
            "runtimeExecutable": null,
            "runtimeArgs": [
                "--nolazy",
                "--harmony"
            ],
            "env": {
                "NODE_ENV": "development"
            },
            "console": "internalConsole",
            "sourceMaps": false
        },
        {
            "name": "Attach",
            "type": "node",
            "request": "attach",
            "port": 9229,
            "address": "localhost",
            "restart": true,
            "sourceMaps": false,
            "localRoot": "${workspaceRoot}",
            "remoteRoot": null
        },
        {
            "name": "Attach to Process",
            "type": "node",
            "request": "attach",
            "processId": "${command:PickProcess}",
            "port": 9229,
            "sourceMaps": false
        }
    ]
}

from adonis-cli.

thetutlage avatar thetutlage commented on May 23, 2024

The issue is not actionable. If you want you can ask for more help on forum, since there are bunch of Vscode users using Adonis https://forum.adonisjs.com/

from adonis-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.