Title: variable name missing in kint debugger
Last modified: December 27, 2019

---

# variable name missing in kint debugger

 *  [keniry](https://wordpress.org/support/users/keniry/)
 * (@keniry)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/variable-name-missing-in-kint-debugger/)
 * [@bungeshea](https://wordpress.org/support/users/bungeshea/) thanks for this 
   plugin it’s a relief to find a well behaved plugin not awash with advertising.
 * I wonder if you can help me ..?
 * I am noticing this difference between using your plugin and the Toolset Custom
   code feature while using the KINT debugger and debug bar
 * **Code Snippets**
 *     ```
       WP_User(8)
       →Called from <ROOT>/wp-content/plugins/code-snippets/php/snippet-ops.php(361) : eval()'d code:3 [get_email_with_code_snippet()]
       ```
   
 * **Toolset custom code**
 *     ```
       →$email_from_toolset_custom_code WP_User(8)
       →Called from <ROOT>/wp-content/toolset-customizations/get-email-with-toolset-custom-code.php:12 [get_email_with_toolset_custom_code()]
       ```
   
 * for some reason Code Snippets is losing the variable name… any idea ?
 * thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fvariable-name-missing-in-kint-debugger%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/variable-name-missing-in-kint-debugger/#post-12356482)
 * Hi [@keniry](https://wordpress.org/support/users/keniry/),
 * I’ve tried this out and I receive the same result as you. I believe that this
   is because of how Code Snippets executes the snippet code in a different way 
   to if it was included in a plugin file.
 * I’ll do some more digging and see if I can find a way around this.
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/variable-name-missing-in-kint-debugger/#post-12357247)
 * I’ve taken a look at the source code of the Kint debugger library, and unfortunately
   it looks like this might not be possible with how Code Snippets works. Kint looks
   at the actual PHP files themselves to determine variable names, as this is not
   provided by PHP, and snippets run directly instead of being saved in PHP files.
 * At some point in the future I’m hoping to transition to a system where snippets
   are saved to files, so this should allow them to work with Kint much more naturally.
   This is probably a little while off though, as I am wary about making such a 
   large change that could potentially not work on some hosts, but it’s definitely
   something I am hoping to introduce.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘variable name missing in kint debugger’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

## Tags

 * [kint](https://wordpress.org/support/topic-tag/kint/)

 * 2 replies
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/variable-name-missing-in-kint-debugger/#post-12357247)
 * Status: not a support question