For C/C++ development I usually use CLion from Jetbrains but I tried to use it with php-src and was unable to get it to work properly. CLion really insists on using CMake and has only quite limited support for makefiles. After trying to get it to work unsuccessfully I am ready to try something else.
So which IDE would you recommend for php-src development? I understand that people probably have many different preferences but I wondered if there was something that most php internals developers used. One important feature would be to easily work with the project running on a docker container
For C/C++ development I usually use CLion from Jetbrains but I tried to use it with php-src and was unable to get it to work properly. CLion really insists on using CMake and has only quite limited support for makefiles. After trying to get it to work unsuccessfully I am ready to try something else.
So which IDE would you recommend for php-src development? I understand that people probably have many different preferences but I wondered if there was something that most php internals developers used. One important feature would be to easily work with the project running on a docker container
Thanks in advance!
Carlos
Re-sending because I accidentally didn’t reply-all:
For C/C++ development I usually use CLion from Jetbrains but I tried to use it with php-src and was unable to get it to work properly. CLion really insists on using CMake and has only quite limited support for makefiles. After trying to get it to work unsuccessfully I am ready to try something else.
So which IDE would you recommend for php-src development? I understand that people probably have many different preferences but I wondered if there was something that most php internals developers used. One important feature would be to easily work with the project running on a docker container
Thanks in advance!
Carlos
Eclipse for C/C++ developers may work as well. I did use it for writing an xdebug patch and reading the PHP source code.
On Sat, Sep 14, 2024 at 11:44 PM Barel <barel.barelon@gmail.com> wrote:
For C/C++ development I usually use CLion from Jetbrains but I tried to use it with php-src and was unable to get it to work properly. CLion really insists on using CMake and has only quite limited support for makefiles. After trying to get it to work unsuccessfully I am ready to try something else.
So which IDE would you recommend for php-src development? I understand that people probably have many different preferences but I wondered if there was something that most php internals developers used.
I tried to like CLion, but it was extremely laggy for me every time I
tried it. php-src contains some rather large files, and even some dsl
(zend_vm_def.h) that didn't work well at all. I also didn't find a way
to add simple highlighting support for PHP test files.
VSCode works surprisingly well, I've used it for C development for
years. I created a simple guide for setting it up, including gdb. It
shouldn't take you more than 10 minutes. [1]
Zed is also already a decent option that essentially just works out of
the box. Unfortunately, it's currently lacking debugging support. [2]
One important feature would be to easily work with the project running on a docker container
Can't help you there, I don't use Docker for C development.
VSCode works surprisingly well, I've used it for C development for
years. I created a simple guide for setting it up, including gdb. It
shouldn't take you more than 10 minutes. [1]
Can confirm: I also use Visual Studio Code and I'm super happy with it. I do use gdb purely from the command line, though.
On Sat, Sep 14, 2024 at 11:44 PM Barel <barel.barelon@gmail.com> wrote:
So which IDE would you recommend for php-src development? I understand that people probably have many different preferences but I wondered if there was something that most php internals developers used.
VSCode works surprisingly well, I've used it for C development for
years. I created a simple guide for setting it up, including gdb. It
shouldn't take you more than 10 minutes. [1]
"For Windows, ymmv." Mine does not; I usually use VSCode for developing
and debugging (only occassionally Visual Studio for the latter).
Debugging works using "cppvsdbg" instead of "cppdbg"; besides "launch",
"attach" also works fine if you have started VSCode with elevated
privileges.
I'm running the build steps from an external console, but integrating
that in VSCode on Windows shouldn't be hard. Oh, and VSCode on Windows
is also fine for developing and debugging php-src in WSL.
On 14 September 2024 22:44:20 BST, Barel <barel.barelon@gmail.com> wrote:
Hi
For C/C++ development I usually use CLion from Jetbrains but I tried to use
it with php-src and was unable to get it to work properly. CLion really
insists on using CMake and has only quite limited support for makefiles.
After trying to get it to work unsuccessfully I am ready to try something
else.
So which IDE would you recommend for php-src development?
I use vim. With the ctags plugin, but that's mostly it. Debugging with gdb and valgrind.
I avoid docker, as that had always made it harder to do things.
I would like to move this forward. DevContainers + VSCode is probably the simplest and easiest development environment we can offer right now.
I’ve been switching to the branch of this Pull Request to do development, but if we could merge this, it would save me the trouble of switching and be very helpful.
For C/C++ development I usually use CLion from Jetbrains but I tried to use it with php-src and was unable to get it to work properly. CLion really insists on using CMake and has only quite limited support for makefiles. After trying to get it to work unsuccessfully I am ready to try something else.
So which IDE would you recommend for php-src development? I understand that people probably have many different preferences but I wondered if there was something that most php internals developers used. One important feature would be to easily work with the project running on a docker container
Thanks in advance!
Carlos
Answering myself in case someone finds this useful in the future.
Several people recommended VSCode so decided to give it a try. I found this guide which describes very well what you need to do to get VSCode working for a php-src project hosted in a docker container. Works brilliantly, I am able to work with the code in the container using all VSCode features, including debugging with GDB. Nice!
+1 for VSCode, I use it practically everywhere these days,
HTML/Javascript/TypeScript/PHP/C/C++/Python/Lua, all on VSCode.
On Mon, 16 Sept 2024 at 13:07, Barel <barel.barelon@gmail.com> wrote:
On Sat, 14 Sept 2024 at 23:44, Barel <barel.barelon@gmail.com> wrote:
Hi
For C/C++ development I usually use CLion from Jetbrains but I tried to use it with php-src and was unable to get it to work properly. CLion really insists on using CMake and has only quite limited support for makefiles. After trying to get it to work unsuccessfully I am ready to try something else.
So which IDE would you recommend for php-src development? I understand that people probably have many different preferences but I wondered if there was something that most php internals developers used. One important feature would be to easily work with the project running on a docker container
Thanks in advance!
Carlos
Answering myself in case someone finds this useful in the future.
Several people recommended VSCode so decided to give it a try. I found this guide which describes very well what you need to do to get VSCode working for a php-src project hosted in a docker container. Works brilliantly, I am able to work with the code in the container using all VSCode features, including debugging with GDB. Nice!
On Mon, Sep 16, 2024, at 7:06 PM, Hans Henrik Bergan wrote:
+1 for VSCode, I use it practically everywhere these days,
HTML/Javascript/TypeScript/PHP/C/C++/Python/Lua, all on VSCode.
On Mon, 16 Sept 2024 at 13:07, Barel <barel.barelon@gmail.com> wrote:
On Sat, 14 Sept 2024 at 23:44, Barel <barel.barelon@gmail.com> wrote:
Hi
For C/C++ development I usually use CLion from Jetbrains but I tried to use it with php-src and was unable to get it to work properly. CLion really insists on using CMake and has only quite limited support for makefiles. After trying to get it to work unsuccessfully I am ready to try something else.
So which IDE would you recommend for php-src development? I understand that people probably have many different preferences but I wondered if there was something that most php internals developers used. One important feature would be to easily work with the project running on a docker container
Thanks in advance!
Carlos
Answering myself in case someone finds this useful in the future.
Several people recommended VSCode so decided to give it a try. I found this guide which describes very well what you need to do to get VSCode working for a php-src project hosted in a docker container. Works brilliantly, I am able to work with the code in the container using all VSCode features, including debugging with GDB. Nice!
Please please someone capture the details of this thread somewhere on the wiki or php.net, or maybe even in the php-src repo itself. We really need to have good "how to get from git clone to a working C debugger" instructions.
On Sat, Sep 14, 2024 at 3:47 PM Barel <barel.barelon@gmail.com> wrote:
Hi
For C/C++ development I usually use CLion from Jetbrains but I tried to use it with php-src and was unable to get it to work properly. CLion really insists on using CMake and has only quite limited support for makefiles. After trying to get it to work unsuccessfully I am ready to try something else.
So which IDE would you recommend for php-src development? I understand that people probably have many different preferences but I wondered if there was something that most php internals developers used. One important feature would be to easily work with the project running on a docker container
Thanks in advance!
Carlos
I use the Makefile integration with CLion. It works alright. Better
than any other C IDE I've used so far. What things are you struggling
with specifically?