Access our premium support and let us know your problems, we will help you solve them.

0
No products in the cart.

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: How do I get PHP errors to display? #10158
    blanktheking2
    Participant

    As it is not clear what OS you are on these are my 2 Windows cents.
    If you are using XAMPP you need to manually create the logs folder under C:\xampp\php. Not your fault, ApacheFriends ommitted this.

    To read and follow this file do.

    Get-Content c:\xampp\php\logs\php_error_log -Wait
    

    To do this in VSCode create a task in .vscode\tasks.json

    { 
      // See https://go.microsoft.com/fwlink/?LinkId=733558 
      // for the documentation about the tasks.json format 
      "version": "2.0.0", 
      "tasks": [ 
        { 
          "label": "Monitor php errors", 
          "type": "shell", 
          "command": "Get-Content -Wait c:\\xampp\\php\\logs\\php_error_log", 
          "runOptions": { 
            "runOn": "folderOpen" 
          } 
        } 
      ] 
    

    and have it run on folder load.

Viewing 1 post (of 1 total)