# Toggling enable / disable Xdebug loses php.ini comments

**URL:** https://community.kinsta.com/t/toggling-enable-disable-xdebug-loses-php-ini-comments/2876
**Category:** Bug Reports
**Created:** [December 18, 2023, 10:12pm UTC](https://community.kinsta.com/t/toggling-enable-disable-xdebug-loses-php-ini-comments/2876 "2023-12-18T22:12:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cliff](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/cliff/32/1557_2.png) [@cliff](https://community.kinsta.com/u/cliff)
#### Post date: [December 18, 2023, 10:12pm UTC](https://community.kinsta.com/t/toggling-enable-disable-xdebug-loses-php-ini-comments/2876/1 "2023-12-18T22:12:18Z")

</div>

**Q: DevKinsta Version**  
**A:** Version 2.11.0 (2.11.0.7044)

**Q: OS Version**  
**A:** macOS 14.1.2 (23B92)

**Q: Docker Desktop Version**  
**A:** 4.26.0

**Q: Were any error codes or messages observed? If so, what were they?**  
**A:** No

**Q: Detailed Description of the Problem**  
**A:** add a comment in the `php.ini` such as a line of `;something here` then disable Xdebug and the comment lines are removed

---

<div class="post-metadata">

### Author: ![Adrian\_L](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/adrian_l/32/2810_2.png) [@Adrian\_L](https://community.kinsta.com/u/Adrian_L)
#### Post date: [December 19, 2023, 12:38am UTC](https://community.kinsta.com/t/toggling-enable-disable-xdebug-loses-php-ini-comments/2876/2 "2023-12-19T00:38:52Z")

</div>

Hi @cliff 👋

Thanks for the report. I have forwarded this possible bug to our Devkinsta Developers for review. 👍
