# How do I ensure I’m debugging the same version of source code that’s running in my production or test environment?

**URL:** <https://community.dynatrace.com/t/how-do-i-ensure-i-m-debugging-the-same-version-of-source-code-that-s-running-in-my-production-or-test-environment/52327>\
**Category:** Open Q&A\
**Tags:** live-debugger\
**Created:** [July 3, 2025, 8:33am UTC](https://community.dynatrace.com/t/how-do-i-ensure-i-m-debugging-the-same-version-of-source-code-that-s-running-in-my-production-or-test-environment/52327 "2025-07-03T08:33:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gosia\_Murawska](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@Gosia\_Murawska](https://community.dynatrace.com/u/Gosia_Murawska)\
**Post date:** [July 3, 2025, 8:33am UTC](https://community.dynatrace.com/t/how-do-i-ensure-i-m-debugging-the-same-version-of-source-code-that-s-running-in-my-production-or-test-environment/52327/1 "2025-07-03T08:33:30Z")

</div>

How can I verify at runtime which version of the source code is currently deployed in my environment?

---

<div class="post-metadata">

**Author:** ![SharonSharlin](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@SharonSharlin](https://community.dynatrace.com/u/SharonSharlin)\
**Post date:** [July 3, 2025, 8:34am UTC](https://community.dynatrace.com/t/how-do-i-ensure-i-m-debugging-the-same-version-of-source-code-that-s-running-in-my-production-or-test-environment/52327/2 "2025-07-03T08:34:04Z")

</div>

During deployment, you can define environment variables pointing to the Git repository and Git commit, which will allow the Live Debugger to automatically tie a specific version of the code to the application or service.
