Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99331

How do you debug a botpress-module installed in bot (botpress) in vs-code?

$
0
0

I have a (Botpress Framework v.10.51.1) bot and I have a botpress-module installed and linked to the bot, I wanted to debug the code in the botpress-module using vscode debugger,

I added the following to my vs-code launch.json and started my bot with the command npm start --debug

{
    "type": "node",
    "request": "launch",
    "name": "Launch Program",
    "cwd": "${workspaceRoot}",
    "port": 5859,
    "program": "${workspaceRoot}/node_modules/botpress/bin/botpress",
    "runtimeExecutable": "node",
    "runtimeArgs": [
        "--debug"
    ],
    "args": [ "start" ],
    "stopOnEntry": false
}

It's still not launching the debugger in vscode , What am i missing ? How do I do this?


Viewing all articles
Browse latest Browse all 99331

Trending Articles