# Any Way to See Exact Error Line in LangGraph Cloud?

**URL:** <https://forum.langchain.com/t/any-way-to-see-exact-error-line-in-langgraph-cloud/286>\
**Category:** Agent Server\
**Tags:** cloud\
**Created:** [July 7, 2025, 9:40am UTC](https://forum.langchain.com/t/any-way-to-see-exact-error-line-in-langgraph-cloud/286 "2025-07-07T09:40:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Petar](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/petar/32/60_2.png) [@Petar](https://forum.langchain.com/u/Petar)\
**Post date:** [July 7, 2025, 9:40am UTC](https://forum.langchain.com/t/any-way-to-see-exact-error-line-in-langgraph-cloud/286/1 "2025-07-07T09:40:43Z")

</div>

Is there any way to make LangGraph Cloud deployments show the exact line of code where an error occurred? Right now, it only gives me a generic message — for example: value error: expected AI message but got human message. That’s just one example, but it doesn’t tell me where exactly in the code it happened. Does anyone have suggestions or best practices for debugging this more effectively?

---

<div class="post-metadata">

**Author:** ![AbdulBasit](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/abdulbasit/32/72_2.png) [@AbdulBasit](https://forum.langchain.com/u/AbdulBasit)\
**Post date:** [July 7, 2025, 6:32pm UTC](https://forum.langchain.com/t/any-way-to-see-exact-error-line-in-langgraph-cloud/286/2 "2025-07-07T18:32:14Z")

</div>

LangGraph Cloud deployments don’t show detailed tracebacks by default for security reasons. To improve debugging, add explicit logging with line numbers in your code using Python’s `logging` module with `exc_info=True`, or wrap critical sections in try-catch blocks that log the specific location. You can also use LangSmith’s tracing to see the execution flow and identify where errors occur in your graph nodes. For development, run `langgraph dev` locally to get full stack traces, then add targeted logging to those problem areas before deploying to production.
