You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-8
Original file line number
Diff line number
Diff line change
@@ -107,7 +107,7 @@ require("neotest-phpunit")({
107
107
})
108
108
```
109
109
110
-
If there are projects you don't want discovered, you can instead set `root_ignore_files` to ignore any matching projects.
110
+
If there are projects you don't want discovered, you can instead set `root_ignore_files` to ignore any matching projects.
111
111
112
112
For example, if your project uses Pest and the appropriate [neotest adapter](https://github.com/V13Axel/neotest-pest), you'll need to set:
113
113
@@ -135,9 +135,12 @@ require("neotest-phpunit")({
135
135
})
136
136
```
137
137
138
-
### Debugging with `dap` strategy
138
+
### Debugging
139
+
140
+
The plugin can also be used for debugging via a dap strategy.
141
+
142
+
Firstly, install and configure [nvim-dap](https://github.com/mfussenegger/nvim-dap) with [vscode-php-debug](https://github.com/xdebug/vscode-php-debug). Then set the following dap configuration:
139
143
140
-
You need to install and configure [nvim-dap](https://github.com/mfussenegger/nvim-dap) with [vscode-php-debug](https://github.com/xdebug/vscode-php-debug) first. For example if you have
141
144
```lua
142
145
dap.configurations.php= {
143
146
{
@@ -164,7 +167,9 @@ dap.configurations.php = {
164
167
}
165
168
}
166
169
```
167
-
you can set
170
+
171
+
Then in the plugin's config, add:
172
+
168
173
```lua
169
174
require("neotest-phpunit")({
170
175
env= {
@@ -174,10 +179,8 @@ require("neotest-phpunit")({
174
179
})
175
180
```
176
181
177
-
If you run a test with `dap` strategy from the summary window (by default by `d`) and see that window content replaced by debugged buffer content then consider setting `dap.defaults.fallback.switchbuf` or Neovim level [`switchbuf`](https://neovim.io/doc/user/options.html#'switchbuf'), f.e.
178
-
```lua
179
-
dap.defaults.fallback.switchbuf="useopen"
180
-
```
182
+
> [!NOTE]
183
+
> If you run a test with the `dap` strategy from the summary window (by default by `d`) and see that the window content has been replaced by debugger content then consider setting `dap.defaults.fallback.switchbuf = "useopen"` or Neovim level [`switchbuf`](https://neovim.io/doc/user/options.html#'switchbuf')
0 commit comments