Emily
I’m just starting out with Elixir in Visual Studio, coming from Python using PyCharm to develop.
In PyCharm there was a 1 click compiler & debugger. So far I can’t find anything like that for Elixir for Visual Studio?
Am I missing something?
If you’re debugging in Visual Studio how are you compiling/debugging code snippets?
Trending in Questions
I having some trouble figuring out if I have set myself too strict of standards for my production server. Currently I can handle 75% of r...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
Hi everyone,
I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding.
I sta...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
I’m new to elixir and just tried to install the elixirLS extension for VScode(ium) and it is throwing some errors that I would like help ...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #elixirconf-eu
- #api
- #forms
- #metaprogramming
- #hex











Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
imetallica
You mean Visual Studio Code?
There is no integration. If you are using a Mix project, a simple
mix compileon the command line should do the trick. Then to run your application, a simpleiex -S mixshould load an Elixir shell and your application, so you can do commands from there.gon782
This will be an unpopular opinion to some, I’m sure, but I’m of the opinion that classic “step debugging” is largely useless in BEAM applications. The problems you encounter will more often than not have something to do with how you’ve laid out your actual process infrastructure.
What step debugging means for execution in processes is that you’ll be holding up a process live system, so it in fact doesn’t help for the actually important issues you’ll be investigating, as they’ll probably show up mostly under load where several processes need to interact. Obviously, if you freeze a process that might need to interact with other processes and as such won’t be responding to requests from elsewhere, you’re now actually the one breaking the system and your debugging has caused effects far beyond what a normal bug could.
It’s something akin to how you can’t determine the spin of an atom (?) without stopping it, thus actually influencing it.
There are other, better ways of debugging, like tracing, that will actually intercept messages between processes and give you information about the state changes in those processes.
If you’re not referring to debugging in the sense previously mentioned, could you please clarify what it is you mean?
Emily
Anyone know of a Visual Studio Code extension that will compile the current open Elixir window without having to type out the compile command each time?
NobbZ
I do not know about such a plugin. But you could use eye_drops to have a compile on save. Or anything similar. Guard from the ruby world will do as well but might be hard to integrate correctly.
OvermindDL1
If VSCode can take Atom plugins (wasn’t there a plugin for VSCode that lets you run a bulk set of Atom plugins?), all I do in Atom is hit save (Ctrl+s), that will then compile the file, run credo over it, and a few other things, with all errors and warnings appearing in the linter view that pops up at the bottom if there are any issues.
Emily
Is there an Elixir IDE that has the functionality to highlight code, and run just that highlighted code?
OvermindDL1
How would that work beyond anything more complex than 1+1 or so? Macros can transform code (a viewer for that would be awesome though!) you’d not know which things to import without basically ‘running’ the rest of the file, etc… etc…
Emily
I’m looking for some kind of bridge to quick test a function without writing a formal test or running all the code in the file. And a quick way to iterate writing a small piece of code, running a quick test of that snippet, then writing the entire module, finally building a formal test. Basically a way to iterate between writing & running code without friction or extra keystrokes.
OvermindDL1
Hmm, well a
defis just a macro that takes the body and creates an AST to pass to the module body, it itself does nothing (and this is why you cannotdefsomething in the REPL), and thedefmodulecall just takes its whole body and passes it to the internal elixir call that creates a new module. Even just a single line of code unless entirely self contained (no imports or aliases or so) seems very difficult to just ‘run’, especially considering how the environment can be transformed around it with macros..Would it not be easier just to run an iex session of the project and execute them that way? That is what I do, combined with a real-time code reloader it makes it pretty trivial to do?
sasajuric
Not exactly what you’re looking for, but maybe this could be extended?
You can have an
.exsfile and run it withelixir your_file_name.exs. You don’t need modules or functions in that (but you can have them if you want). This is what I personally use for quick iterations/experiments.So combining that with the previous link, I guess (but don’t know for sure, since I’m not familiar with VSCode) that it should be possible to create a task which runs the current file using the
elixircommand and outputs the result.