Skip to content
Discussion options

You must be logged in to vote

Hello,

Running the agent via npx @google/adk-devtools run agent.ts command do not support debug mode. This is a wrapper that starts node process with adk-devtools cli entry point which loads agent from given file and run it with the ADK runner instance.

To be able to debug your agent file you might need to do pretty much the same but manually:

  1. Define your agent class in agent.ts, for example:
const myTool = new FunctionTool({
  name: 'my_tool',
  description: 'Tool desc',
  execute: () => {},
});

const rootAgent = new LlmAgent({
  name: 'root_agent',
  model: 'gemini-2.5-flash',
  instruction: '...instructions',
  tools: [myTool],
});
  1. Run agent with agent runner (InMemory for debug). …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kalenkevich
Comment options

You must be logged in to vote
2 replies
@dnlrbz
Comment options

@dnlrbz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants