# Repl debugger how to set default editor?

**URL:** https://discourse.julialang.org/t/repl-debugger-how-to-set-default-editor/79851
**Category:** New to Julia
**Tags:** debugger
**Created:** [April 22, 2022, 3:33pm UTC](https://discourse.julialang.org/t/repl-debugger-how-to-set-default-editor/79851 "2022-04-22T15:33:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![anon69491625](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@anon69491625](https://discourse.julialang.org/u/anon69491625)
#### Post date: [April 22, 2022, 3:33pm UTC](https://discourse.julialang.org/t/repl-debugger-how-to-set-default-editor/79851/1 "2022-04-22T15:33:21Z")

</div>

hi there  
just starting with the julia repl debugger but when I want to open the current line in an editor I get

```julia
About to run: (tuple)(2, 2)
1|debug> fr
[1] foo(n) at REPL[1]:1
  | n::Int64 = 20
  | x::Int64 = 21
1|debug> o
Could not find file: "REPL[1]"
1|debug> 

```

how can I set up the debugger to set up xed ( my editor)  
thank you

---

<div class="post-metadata">

### Author: ![contradict](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@contradict](https://discourse.julialang.org/u/contradict)
#### Post date: [April 22, 2022, 3:43pm UTC](https://discourse.julialang.org/t/repl-debugger-how-to-set-default-editor/79851/2 "2022-04-22T15:43:43Z")

</div>

Unfortunately, the debugger cannot open an editor for a function that is not already stored in a file. Since this function was entered at the REPL, it exists only in memory. If you had loaded a function from a file (perhaps with `include("file.jl")`), this command would use the [`InteractiveUtils`](https://docs.julialang.org/en/v1/stdlib/InteractiveUtils/#InteractiveUtils.edit-Tuple%7BAbstractString,%20Integer%7D) stdlib to open the editor specified in one of the `JULIA_EDITOR` , `VISUAL` or `EDITOR` environment variables.

---

<div class="post-metadata">

### Author: ![anon69491625](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@anon69491625](https://discourse.julialang.org/u/anon69491625)
#### Post date: [April 22, 2022, 5:02pm UTC](https://discourse.julialang.org/t/repl-debugger-how-to-set-default-editor/79851/3 "2022-04-22T17:02:55Z")

</div>

thank you for the great reply. Really saved me some time.
