Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't debug multi-run dapr solution (The task dapr cannot be tracked) #319

Open
jasonshave opened this issue Jan 11, 2024 · 4 comments
Open

Comments

@jasonshave
Copy link

Overview:

I'm able to run my dapr solution which has 3 ASP.NET 8 web API's using the dapr -f multi-run file but having some difficulty getting the debug experience to work.

Actual behavior:

When using the CTRL+SHIFT+P to scaffold a launch.json and task for tasks.json, it creates the following:

{
  "name": "Launch Dapr",
  "request": "launch",
  "type": "dapr",
  "runFile": "${workspaceFolder}/dapr.yaml",
  "preLaunchTask": "dapr"
}
{
  "label": "dapr",
  "type": "dapr",
  "runFile": "$(workspaceFolder)/dapr.yaml"
},
  1. The first issue is that the runFile's value results in a file not found. If I remove the $(workspaceFolder) and just use dapr.yaml, the project starts up with the right components and sidecar/etc.
  2. Once the solution is started, I get this error:

image

If I click DebugAnyway, I get:

image

  1. If I use the dapr extension to locate the running apps and click on any of the debug buttons I get:

image

Expected behavior:

I should be able to attach and debug with breakpoints in each independent application.

@joshfreitas1984
Copy link

First up your tasks are wrong you can just do:
{
"label": "dapr",
"type": "dapr",
"runFile": "./dapr.yaml"
}

Was getting the same error about fastlist so I downloaded it chucked it in the \vendor but then it never finds the process - I'm guessing somethings busted.

Is this extension abandoned?

@karpikpl
Copy link

same issue happening for me.
that "runFile": "$(workspaceFolder)/dapr.yaml" is actually how DAPR extension scaffolds the project

@joshfreitas1984
Copy link

Anyone that finds this - pretty sure the plugin is abandoned. However, .NET Aspire is your friend! The f5 experience on the Apphost is amazing it will load up all your hosts and attach the debuggers super fast.

@philliphoff
Copy link
Member

@joshfreitas1984 @karpikpl Abandoned, no. One item in an ever-increasing set of responsibilities with constantly shifting priorities, perhaps. :-) I'm working on a PR to resolve some of these task scaffolding issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants