Comments (5)
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.
Can you explain more about what you mean by "iex -S mix debugging"?
from vscode-elixir-ls.
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.
A PR would be welcome
from vscode-elixir-ls.
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)
- VSCode stops LS after completion on OTP 26 Windows HOT 6
- vsCode prompts : Restarting server failedElixirLS and ElixirLS - blockscout client: couldn't create connection to server. HOT 6
- VSCode it keeps telling me: Could not find Hex HOT 1
- @doc on hover quit showing recently HOT 2
- Honor .formatter.exs line_length in editor.ruler HOT 4
- Running wallaby `feature` tests in VS Code HOT 3
- Confusing / harmful directions about debug_info in the README HOT 1
- Header must provide a Content-Length property error in VSCode HOT 24
- All testcases run from VS Code on Windows are always passed HOT 5
- elixirls crashes whenever I open VSCode HOT 2
- Completions broke? HOT 13
- Syntax highlighting broken in "Darcula theme for Elixir" HOT 4
- Hit return on "handle_call" completion insert extra "do" and "end" HOT 2
- elixir command check is invalid
- Slow Formatting on First Save of Lengthy HEEx Templates
- elixir extension not supported HOT 4
- Feature request: Send to REPL/Terminal HOT 2
- Suggestion Problem HOT 1
- debugging with "Debug Test" option gets killed after a minute
- Wrong textmate scope for __MODULE__ with function call HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-elixir-ls.