-
-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot launch with externalConsole: true on macOS #760
Comments
DAP trace, if it makes any difference:
|
Hi! Thanks for the report. I have access to a mac and will test it out. |
I'm revisiting this issue now. I'll probably just include the missing file, but I want to understand it better. |
Yes you are right, vimspector does indeed support the If you decide that the best thing for vscode-php-debug is to send |
I think this is a better way to go... There is one problem with the I'm considering adding a Also, the I'll think about it. |
Yeah I thought that too, though it was only broken on macOS which I guess is not a high usage environment for PHP in practice? |
I think there is not much usage of the "run currently open script" and similar... I wanted to invest some time into some basic telemetry for some time. That would give some insight what's important and what problems people are dealing with. |
Note for myself. When using runInTerminal the js debugger is using a poll mechanism to see if the process is alive https://github.com/microsoft/vscode-js-debug/blob/a710e44c8391e70c179279f54e9fc12d81452945/src/targets/node/program.ts#L190 I have to keep the current "external terminal" implementation and the one with runInTerminal for clients that do not support it. |
PHP version: 8.1.2
Xdebug version: 3.1.3
VS Code extension version: 1.23.0
Your launch.json (actually .vimspector.json, but essentially contains the same info):
Xdebug php.ini config/etc all here: puremourning/vimspector#539 (comment)
I'm not using vscode, but another DAP client, vimspector.
When launching on macOS using the debug adapter directly, when
externalConsole
istrue
, the launch fails with:I have checked the .vsix does not contain this file, though it is in the repo.
I have checked the extension code and it is assuming the file exists in the same dir as the js files.
I think this is just a packaging error, and the
terminalHelpler.scpt
is just not being included in the extension bundle. Copying the one from this repo into that dir does indeed work and fixes the issue.On a side note, I think there's another issue that the script is called
TerminalHelper.scpt
and the code looks forterminalHelper.scpt
. Most Mac users will have case-insensitive filesystem, but at least some will have selected case-sensitive I think, so may be worth correcting that.The text was updated successfully, but these errors were encountered: