ex_debug_toolbar icon indicating copy to clipboard operation
ex_debug_toolbar copied to clipboard

Not working on windows

Open lekoala opened this issue 8 years ago • 9 comments

Hey,

This looks like a wonderful tool! However I'm on windows and erlexec doesn't work. Would there be a way to make this dependancy optionnal?

lekoala avatar Sep 28 '17 14:09 lekoala

erlexec runs on windows 10 here (via cygwin, I'm not using the bash shell, so this will work on any windows version).

OvermindDL1 avatar Sep 28 '17 14:09 OvermindDL1

hey @lekoala,

erlexec is required for breakpoints functionality. One solution would be to make breakpoints optional. But I'd rather try to solve the issue with erlexec. Could you copy paste your error log?

kagux avatar Sep 28 '17 15:09 kagux

To be more specific, erlexec is a native binary and needs to be compiled, thus it requires a supported compiler on your system, and as long as you have that it should work fine. :-)

It 'is' possible for kagux to pre-build a windows binary and distribute it in the releases though for those that don't have C build systems installed.

OvermindDL1 avatar Sep 28 '17 15:09 OvermindDL1

@OvermindDL1, that's an interesting option. Although, if it comes to, erlexec should be doing that.

It's hard to avoid native packages though, and sooner or later you'd face a problem of building one. Unless of course it's a problem specific to erlexec. So maybe the best solution is to provide better build instructions for Windows in such cases.

Either way, @lekoala, seeing your logs would greatly help!

kagux avatar Sep 29 '17 10:09 kagux

It's hard to avoid native packages though, and sooner or later you'd face a problem of building one. Unless of course it's a problem specific to erlexec. So maybe the best solution is to provide better build instructions for Windows in such cases.

Not specific to erlexec at all, you need the same build system set up for bcrypt and such too. :-)

OvermindDL1 avatar Sep 29 '17 14:09 OvermindDL1

Here is the error. But I think this is to be expected since erlexec is not supported on windows. I have cygwin but I have no idea how to compile my dependencies using it.

===> Compiling erlexec
===> Compiling ../deps/erlexec/c_src/ei++.cpp
===> g++: error: /c: No such file or directory
g++: error: /Fo ../deps/erlexec/c_src/ei++.o: Invalid argument

** (Mix) Could not compile dependency :erlexec, "escript.exe "c:/Users/MyUser/.mix/rebar3" bare compile --paths "../_build/dev/lib/*/ebin"" command failed. You
 can recompile this dependency with "mix deps.compile erlexec", update it with "mix deps.update erlexec" or clean it with "mix deps.clean erlexec"

lekoala avatar Oct 03 '17 08:10 lekoala

Having the same issue as @lekoala. Googled a bit before posting this. I remember I had a similar issue compiling Bcrypt for Comeonin, but that worked out eventually with VS++. Tried the same approach here without any success.

Is there a way to use ex_debug_toolbar on Windows 10 ?

===> Compiling erlexec
===> Compiling c:/../deps/erlexec/c_src/ei++.cpp
===> g++: error: /Foc:/.../deps/erlexec/c_src/ei++.o: Invalid argument

** (Mix) Could not compile dependency :erlexec, "escript.exe "c:/.../.mix/rebar3" bare compile --paths "c:/.../_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile erlexec", update it with "mix deps.update erlexec" or clean it with "mix deps.clean erlexec"

sfusato avatar Jul 20 '18 08:07 sfusato

@OvermindDL1 how to build/compile erlexec under Windows via cygwin ?

sfusato avatar Jul 20 '18 09:07 sfusato

It just works for me, though I have the full cross-compilation pipeline installed in cygwin (I have to compile ocaml as well).

OvermindDL1 avatar Jul 20 '18 14:07 OvermindDL1