Debug mode of create_react_agent does not work after upgrading to the latest version #228

Closed
opened 2026-02-20 17:32:46 -05:00 by yindo · 4 comments
Owner

Originally created by @Valdanitooooo on GitHub (Sep 5, 2024).

Checked other resources

  • I added a very descriptive title to this issue.
  • I searched the LangGraph/LangChain documentation with the integrated search.
  • I used the GitHub search to find a similar question and didn't find it.
  • I am sure that this is a bug in LangGraph/LangChain rather than my code.
  • I am sure this is better as an issue rather than a GitHub discussion, since this is a LangGraph bug and not a design question.

Example Code

create_react_agent(
    model=llm,
    tools=[
        *tools(),
    ],
    state_modifier=system_message,
    debug=True,
)

Error Message and Stack Trace (if applicable)

agent = create_react_agent(
    model=llm,
    tools=[
        *tools(),
    ],
    state_modifier=system_message,
    debug=True,
)

agent.astream(input={"messages": messages})

Description

No debug log output

System Info

langgraph==0.2.18

Originally created by @Valdanitooooo on GitHub (Sep 5, 2024). ### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the [LangGraph](https://langchain-ai.github.io/langgraph/)/LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. - [X] I am sure that this is a bug in LangGraph/LangChain rather than my code. - [X] I am sure this is better as an issue [rather than a GitHub discussion](https://github.com/langchain-ai/langgraph/discussions/new/choose), since this is a LangGraph bug and not a design question. ### Example Code ```python create_react_agent( model=llm, tools=[ *tools(), ], state_modifier=system_message, debug=True, ) ``` ### Error Message and Stack Trace (if applicable) ```shell agent = create_react_agent( model=llm, tools=[ *tools(), ], state_modifier=system_message, debug=True, ) agent.astream(input={"messages": messages}) ``` ### Description No debug log output ### System Info langgraph==0.2.18
yindo closed this issue 2026-02-20 17:32:46 -05:00
Author
Owner

@Valdanitooooo commented on GitHub (Sep 6, 2024):

After testing, this issue started with version 0.2.17.

@Valdanitooooo commented on GitHub (Sep 6, 2024): After testing, this issue started with version 0.2.17.
Author
Owner

@vbarda commented on GitHub (Sep 6, 2024):

@Valdanitooooo i cannot reproduce the issue on the latest version of langgraph -- i see debug log outputs. i would recommend re-installing it in a fresh virtual environment and double-checking. will close for now but let me know if that doesn't help and you're still seeing issues

@vbarda commented on GitHub (Sep 6, 2024): @Valdanitooooo i cannot reproduce the issue on the latest version of langgraph -- i see debug log outputs. i would recommend re-installing it in a fresh virtual environment and double-checking. will close for now but let me know if that doesn't help and you're still seeing issues
Author
Owner

@x-arturs commented on GitHub (Sep 18, 2024):

@vbarda I stopped getting debug log outputs as well after upgrading to the latest langgraph version (0.2.22). I tried reinstalling it in a fresh virtual environment but this didn't help either. I'm using Python 3.12.2.

@x-arturs commented on GitHub (Sep 18, 2024): @vbarda I stopped getting debug log outputs as well after upgrading to the latest langgraph version (0.2.22). I tried reinstalling it in a fresh virtual environment but this didn't help either. I'm using Python 3.12.2.
Author
Owner

@Valdanitooooo commented on GitHub (Oct 17, 2024):

I reinstalled the virtual environment and installed version 0.2.38, but it still doesn't work.
Then I realized that this may be related to the operating system, and the Docker image I built does not have this issue.
My development environment is on the macOS system.

@Valdanitooooo commented on GitHub (Oct 17, 2024): I reinstalled the virtual environment and installed version 0.2.38, but it still doesn't work. Then I realized that this may be related to the operating system, and the Docker image I built does not have this issue. My development environment is on the macOS system.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#228