Skip to content

Allow easy debugging (setting breakpoints) of a Genkit app in VSCode #631

@pavelgj

Description

@pavelgj

Right now it's not possible to debug when running the app via genkit start because it Genkit CLI starts a sub-process and doesn't pass along debug settings (ex. can't pass --inspect flag to be able to attach a debugger).

Today you need to run your actual app in debug mode (F5). You'll need to set the env vars in the launch config...
You'll be able to set breakpoints, but you won't have the dev UI...
To get the dev ui you you need to manually set "GENKIT_ENV": "dev" and then attach the dev UI to the running process -- genkit start -a http://localhost:3100.

Would be great to have a "Debug Genkit App" VSCode option. This might require a Genkit VSCode extension.

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions