Browse Source

配置xdebug

master
blobt 3 years ago
parent
commit
3b9625360a
  1. 19
      .vscode/launch.json
  2. 4
      .vscode/settings.json
  3. 8
      examples/test.php
  4. 9
      src/Base.php
  5. 9
      src/OpenCL.php

19
.vscode/launch.json

@ -0,0 +1,19 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9055
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9055
}
]
}

4
.vscode/settings.json

@ -0,0 +1,4 @@
{
"php.suggest.basic": false,
"php.validate.executablePath": "/usr/bin/php"
}

8
examples/test.php

@ -0,0 +1,8 @@
<?php
include dirname(dirname(__FILE__)) . "/vendor/autoload.php";
use Blobt\Luxcore\OpenCL;
$opencl = new OpenCL();
echo $opencl;

9
src/Base.php

@ -0,0 +1,9 @@
<?php
namespace Blobt\Luxcore;
class Base {
public function __toString(){
return "sasasasa";
}
}

9
src/OpenCL.php

@ -0,0 +1,9 @@
<?php
namespace Blobt\Luxcore;
class OpenCL extends Base{
public $cpuUse;
public $gpuUse;
}
?>
Loading…
Cancel
Save