tableau / wdc3

Web Data Connector (WDC), connecting to web application data from Tableau.
6 stars 1 forks source link

How to debug WDC 3.0 locally #10

Open Tommo56700 opened 1 year ago

Tommo56700 commented 1 year ago

As I understand it is possible to debug a WDC 3.0 locally using: taco-scripts start --debug

Is there some documentation on how to attach to this process to debug in VS code for:

https://community.tableau.com/s/question/0D58b0000BKG5rECQT/how-to-debug-wdc-30-locally

caballo111 commented 1 year ago

I'm able to debug start.js (the script that runs when you execute "taco start") in VS Code with the following launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Start",
            "skipFiles": [
                "<node_internals>/**"
            ],
            "program": "${workspaceFolder}\\connector\\node_modules\\@tableau\\taco-toolkit\\bin\\taco-scripts.js",
            "args": ["start"],
            "cwd": "${workspaceFolder}\\connector"
        }
    ]
}

Perhaps this can point you in the right direction. I haven't been able to debug any of the handlers (parser and fetcher).