Skip to main content

All Questions

Tagged with
1 vote
0 answers
42 views

How do I show the website (.php using XAMPP) for my team using Live Share in VSCode?

I am using Visual Studio Code Live Share extension to collaborate with my team on a website project for our school. All I want is for my team to access the websites we've created. And in this case, I ...
hanzoera's user avatar
-1 votes
2 answers
40 views

PHP Laravel SQLSTATE[HY000]

I have a problem... ORM When I use php artisan tinker, use App\\Models\\User $u = new User(); $u->title = 'sale'; $u->content = 'auto ...'; $u->price = 2500; HERE ARE GOOD ...
Tamagochi4x4's user avatar
-1 votes
0 answers
45 views

'php' binary could not be either found or executed. Make sure PHP is installed, and add path to "php.executables" setting [duplicate]

VS Code writes this error when running the code. Here is my "settings.json": { "php.suggest.basic": true, "php.validate.enable": true, "php.validate....
Witer's user avatar
  • 9
1 vote
0 answers
32 views

VSCode: Incorrect indentation after method chaining?

After I've concluded a block with method chaining, VSCode keeps the indentation until I format on save. Example: $orders = Order::paid() ->notShipped() ->get(); dd($orders); // <-...
Sebastian Stoll's user avatar
1 vote
1 answer
88 views

How to make Xdebug (v3) work with VSCode and Docker (or Podman) on a Windows host?

When I use Xdebug with VSCode (and the PHP Debug extension) locally on my Windows host, it works fine. But when I try to use Xdebug on a docker/podman container, it doesn't work - it won't stop on ...
pileup's user avatar
  • 3,172
1 vote
0 answers
51 views

Why PHP code debugging not worked in VSCode

Guess this theme repeated here 1000 times, but I didn't find why VSCode cannot debug PHP code. Latest VSCode with all required PHP extensions (PHP Debug also). Windows 11. php --version: PHP 8.3.9 (...
vbulash's user avatar
  • 155
1 vote
1 answer
45 views

VSCode Syntax Highlighting CSS/PHP mixed

I have a file style.php that contains css primarily and php in some areas. Syntax highlighting is completely broken in this scenario. <?php header("Content-type: text/css"); ?> :...
Fluxian's user avatar
  • 873
1 vote
1 answer
102 views

VSCode PHP Xdebug in remote server ignoring breakpoints

I'm trying to debug my app in a remote server. The remote server is a QNAP NAS, runs Apache and has Xdebug installed. 99-xdebug.ini [xDebug] extension = xdebug xdebug.mode = debug,develop xdebug....
Daviid's user avatar
  • 1,536
0 votes
1 answer
389 views

Member has protected visibility and is not accessible from the current context.PHP

My editor shows an error even the field is not a protected, now I wondering if model is valid column name or it just a bug in PHP debugging tools/extensions. I am using VScode and I have this php ...
Pyromagne's user avatar
1 vote
0 answers
41 views

VSCode Xdebug exception message encoding issue - Korean language

I'm using Xdebug in VSCode on Windows 10. When I debug PHP source using Xdebug, Character Encoding for Exception Message is weird. My Source File Encoding is UTF-8, and php.ini configuration is also ...
Jay Lee's user avatar
  • 49
-1 votes
2 answers
72 views

PHP Composer errors with XDEBUG_MODE not recognized in VS Code

I am running VS Code. I have PHP installed locally, Composer installed locally and the VS Code Composer plugin installed in VS Code. From VS Code terminal, I pulled the GitHub master project and the ...
rolinger's user avatar
  • 3,038
0 votes
2 answers
61 views

Cannot turn on/off xdebug step debugger feature

I am not able to turn On/Off XDEBUG 'Step Debugger' feature reliably through ini file settings. I understand I should be able to do so at the xdebug/php.ini files basically toggoling the value of ...
Carlos Sanchez's user avatar
0 votes
0 answers
88 views

xdebug will not work when using visual studio code and lando

I installed lando with a wordpress recipe. The setup works and I am unable to get the code to stop on breakpoints with xdebug. After using the code on the Lando site for toggling on and off xdebug I ...
eidetmp's user avatar
  • 41
0 votes
0 answers
42 views

PHP or Xdebug character encoding error when encountering an Exception in Xdebug

I have encountered some error in VSCode with Xdebug. Sometimes the Exception message is not represented as UTF-8 so I can't understand the error message. I've set the character encoding to UTF-8 in ...
Jay Lee's user avatar
  • 49
0 votes
1 answer
52 views

Can I debug PHP with shared hosting?

I have VS Code installed on my client (laptop). PHP is installed on the server. However, since its shared hosting, I can't install anything myself (like Xdebug). Is possible to debug PHP (set ...
Shane Goodman's user avatar

15 30 50 per page
1
2 3 4 5
61