vscode-phpcs icon indicating copy to clipboard operation
vscode-phpcs copied to clipboard

Version exception being throwed w/o being catch on XDebug

Open odahcam opened this issue 7 years ago • 2 comments

Sorry, I really dunno whats really happening, but any help would be awesome, I already deactivated the extension to avoid this issue and I'll be glad if I can reactivate it.

https://github.com/squizlabs/PHP_CodeSniffer/issues/2037#issuecomment-414053593

odahcam avatar Aug 20 '18 15:08 odahcam

Same issue. phpcs work bad when i turn on Listen for xDebug. Other extention PHP Sniffer work fine. Снимок

fey avatar Mar 12 '19 05:03 fey

I am having the same, you'll probably need to configure xdebug to ignore those files, I'll reply here once i figure it out.

Edit: Solved it by configuring xdebug to ignore that file. your launch.json should look something like this, make sure you add the actual path where your codesniffer directory is.

{ "version": "0.2.0", "configurations": [ { "name": "Listen for XDebug", "type": "php", "request": "launch", "port": 9000, "ignore": [ "**/vendor/**/*.php", "/usr/share/php/PHP/CodeSniffer/**" ] }, { "name": "Launch currently open script", "type": "php", "request": "launch", "program": "${file}", "cwd": "${fileDirname}", "port": 9000, "ignore": [ "**/vendor/**/*.php", "/usr/share/php/PHP/CodeSniffer/**" ] } ] }

muametgrooby avatar Jun 16 '20 12:06 muametgrooby