Implements GenericDataExtractionProviderFactory. With this, the debug visualizer can be used with every language that can be debugged in VS Code.
This commit is contained in:
22
example-project/.vscode/launch.json
vendored
Normal file
22
example-project/.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Listen for XDebug",
|
||||
"type": "php",
|
||||
"request": "launch",
|
||||
"port": 9000
|
||||
},
|
||||
{
|
||||
"name": "Launch currently open script",
|
||||
"type": "php",
|
||||
"request": "launch",
|
||||
"program": "${file}",
|
||||
"cwd": "${fileDirname}",
|
||||
"port": 9000
|
||||
}
|
||||
]
|
||||
}
|
||||
18
example-project/src/demo.php
Normal file
18
example-project/src/demo.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
for ($i = 0; $i < 100; $i++) {
|
||||
|
||||
// { kind: { graph: true }, nodes: [ { id: "1", label: "1" }, { id: "2", label: "2" } ], edges: [{ from: "1", to: "2", label: "edge" }]}
|
||||
$data = json_encode(array(
|
||||
"kind" => array("graph" => true),
|
||||
"nodes" => [
|
||||
array("id" => "1", "label" => "1"),
|
||||
array("id" => "2", "label" => "2"),
|
||||
],
|
||||
"edges" => [
|
||||
array("from" => "1", "to" => "2", "label" => "edge")
|
||||
]
|
||||
));
|
||||
|
||||
echo "test" . $i;
|
||||
}
|
||||
Reference in New Issue
Block a user