Skip to content

Debugging Backend #3784

Answered by jpalmucci
jpalmucci asked this question in Q&A
Discussion options

You must be logged in to vote

So I got it running by using dx bundle and then just launching a debug target using the lldb plugin. So, in tasks.json:
{
"tasks": [
{
"taskName": "dxbundle",
"suppressTaskName": true,
"command": "dx",
"args": ["bundle", "--platform", "web"]
}
]
}

and in launch.json under "configurations:
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'appname'",
"initCommands": [],
"preLaunchTask": "dxbundle",

  "program": "${workspaceFolder}/target/dx/appname/debug/web/server",
  "args": [],
  "cwd": "${workspaceFolder}/target/dx/appname/debug/web"
}

Doesn't allow hot swapping, but good enough for now,

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jpalmucci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant