How can I debug a REST API made with express when making an http request with POSTMAN?

0

Good morning, I'm doing an API with Node JS and I use EXPRESS. I want to put breakpoints in order to debug the application every time I send a request with POSTMAN. I'm using VISUAL STUDIO CODE, I have the file launch.json

{
    // Utilizar IntelliSense para aprender acerca de los posibles atributos.
    // Mantenga el puntero para ver las descripciones de los existentes atributos 
    // Para más información, visite: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [

        {
            "type": "node",
            "request": "launch",
            "name": "Iniciar programa",
            "program": "${workspaceFolder}\index.js"
        },
        {
            "type": "node",
            "request": "launch",
            "name": "Loggin debugger",
            "program": "${workspaceFolder}/routes/user.js",
        }
    ]
}
    
asked by Alejo 13.09.2018 в 18:20
source

0 answers