Welcome Guest, Not a member yet? Register   Sign In
Testing with vscode + xdebug
#1

Hello, 
I need help to setup my launch.json for debug tests using vscode + xdebug.

All works fine when launching debug via http request, but when I tried to debug test files It always stop with this error:

Class 'CodeIgniter\Test\CIUnitTestCase' not found

This is the related portion fo my launch.json file:

Code:
// --- this works fine ---
{
      "name": "Xdebug in Browser",
      "type": "php",
      "request": "launch",
      "hostname": "localhost",
      "port": 9000,
      "serverReadyAction": {
          "action": "openExternally"
      },
      "stopOnEntry": true,
      "xdebugSettings":{
        "show_hidden": 1
      }
    },
// --- this run into: Class 'CodeIgniter\Test\CIUnitTestCase' not found ---
    {
      "name": "Xdebug in Console",
      "type": "php",
      "request": "launch",
      "program": "${file}",
      "cwd": "${workspaceFolder}",
      "externalConsole": false,
      "port": 9000
    }

Can anyone please help me to solve this issue?

Many thanks in advance.
Reply


Messages In This Thread
Testing with vscode + xdebug - by max1492 - 11-22-2020, 10:04 AM
RE: Testing with vscode + xdebug - by max1492 - 11-24-2020, 12:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB