Giter VIP home page Giter VIP logo

Comments (5)

k-qb avatar k-qb commented on May 31, 2024 1

I can imagine what big-town is asking for, because I might have the same request.
It's pretty simple.
I want to attach an iex session via --remsh, so I can use the iex session to execute code, that runs into a breakpoint and can such be debugged.

I achieved this by adding an "sname" to the elixir invocation in the debugger.sh

In the following file:
.vscode/extensions/elixir-lsp.elixir-ls-0.3.2/elixir-ls-release/debugger.sh
I changed the elixir line to:
elixir --sname debug -e "ElixirLS.Debugger.CLI.main()"

Then i can attach to that process with:
iex -S mix --remsh debug --sname debug-client

Obviously the sname could be something else.
Unfortunately, I'm a newbie about github and pull-requests.

from vscode-elixir-ls.

axelson avatar axelson commented on May 31, 2024

Can you explain more about what you mean by "iex -S mix debugging"?

from vscode-elixir-ls.

big-town avatar big-town commented on May 31, 2024

Excuse me I didn’t answer for so long. I mean for the debugging process in interactive mode. For example: I run my application like this: iex --name service@host. Usually I execute set of command :debugger.start, :int.ni Module, :int.break Module, row. Similar algorithm implements the Idea IDE with an extension for elixir.

from vscode-elixir-ls.

lukaszsamson avatar lukaszsamson commented on May 31, 2024

A PR would be welcome

from vscode-elixir-ls.

lukaszsamson avatar lukaszsamson commented on May 31, 2024

ELS_ELIXIR_OPTS and ELS_ERL_OPTS are now supported. You can pass --sname --cookie mycookie via ELS_ELIXIR_OPTS and connect to it from iex session. I believe this issue is now resolved.

from vscode-elixir-ls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.