Skip to content

Commit b88df38

Browse files
authored
Merge branch 'master' into pentest-policy
2 parents dc14f2e + 6d925c8 commit b88df38

2 files changed

Lines changed: 27 additions & 2 deletions

File tree

docs/hypernode-platform/php/remote-debugging.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ If you're not using Xdebug cloud, you need to open a reverse SSH tunnel so that
5252
$ ssh -R 9003:localhost:9003 app@example.hypernode.io -N
5353
```
5454

55-
### Configure PhpStorm
55+
### IDEs
56+
57+
#### PhpStorm
5658

5759
Then you open up your PhpStorm project and go to your *File -> Settings -> PHP -> Servers*. Click the *+* button to add a server and fill *Name* and *Host* with the full domain name of the site you want to debug (for example www.shop.com). Then check the box *Use path mappings* and click on the right column next to your project root. Here you can fill in the absolute path of the application on the remote server, for example:
5860

@@ -72,6 +74,29 @@ Finally click the *Start Listening for PHP Debug Connections* button. Now your d
7274

7375
![](_res/phpstorm-listen-for-debug.png)
7476

77+
#### Visual Studio Code
78+
79+
If you prefer Visual Studio Code, you can use the PHP Debug extension. Create or update `.vscode/launch.json` in your project with the following configuration and adjust `pathMappings` to your remote application path:
80+
81+
```json
82+
{
83+
"version": "0.2.0",
84+
"configurations": [
85+
{
86+
"name": "Listen for XDebug",
87+
"type": "php",
88+
"request": "launch",
89+
"port": 9003,
90+
"pathMappings": {
91+
"/data/web/releases/1767778825": "${workspaceRoot}"
92+
}
93+
}
94+
]
95+
}
96+
```
97+
98+
After saving, open the *Run and Debug* panel, choose **Listen for XDebug**, and start listening for incoming debug connections on port 9003.
99+
75100
### Start debugging
76101

77102
To start debugging, make sure you have the Xdebug helper extension enabled in your browser:

docs/hypernode-platform/tools/how-to-use-the-hypernode-systemctl-cli-tool.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ To see which values you can set and which values they are allowed to have take a
4848
| **nodejs_version**<br/><sub>Change the Node version</sub> | 22 | 6, 10, 16, 18, 20, 22 |
4949
| **opensearch_auto_create_index**<br/><sub></sub> | True | True, False |
5050
| **opensearch_enabled**<br/><sub>Enable OpenSearch</sub> | True | True, False |
51-
| **opensearch_version**<br/><sub>Change the OpenSearch version</sub> | 2.12 | 1.x, 2.6, 2.12 |
51+
| **opensearch_version**<br/><sub>Change the OpenSearch version</sub> | 2.12 | 1.x, 2.6, 2.12, 2.19, 3.3 |
5252
| **openvpn_enabled**<br/><sub>Enables OpenVPN for secure database connections</sub> | False | True, False |
5353
| **password_auth**<br/><sub>Indicates whether password authentication for the Hypernode is<br />allowed instead of only SSH keys</sub> | True | True, False |
5454
| **permissive_memory_management**<br/><sub>Configure memory management policy (OOM kills)</sub> | False | True, False |

0 commit comments

Comments
 (0)