2

I'm debugging a laravel app and I need to know if any of these characters ( \n \t ) are present.

Previously VS Code did show them, now it does not:

enter image description here

Is there any way to enable this again?


I'm using Xdebug + VS Code.

2

3 Answers 3

1

It seems Visual studio code "delegated" this escape to the debugger, I have spoken to the developer of xDebug and they told me they aren't escaping anything on their side, it seems a problem of vs code and this should be an option for the end-user not the debugger.

there's no current way of doing this atm on this date

0

This might help?

  // Controls how the editor should render whitespace characters.
  //  - none
  //  - boundary: Render whitespace characters except for single spaces between words.
  //  - selection: Render whitespace characters only on selected text.
  //  - all
  "editor.renderWhitespace": "selection",

https://code.visualstudio.com/docs/getstarted/settings

1
  • Just tried this a while ago but it doesnt work, \n characters are still invisible
    – Hex
    Commented May 11, 2020 at 18:07
0

Gremlin Tracker plugin for VS Code is great for finding invisible/weird characters in combination with the "Render Line Endings" plugin.

Gremlin Tracker: https://marketplace.visualstudio.com/items?itemName=nhoizey.gremlins

Render Line Endings: https://marketplace.visualstudio.com/items?itemName=medo64.render-crlf

Not the answer you're looking for? Browse other questions tagged or ask your own question.