# How to setup a Julia project to load modules depending on input and debug in vscode

**URL:** https://discourse.julialang.org/t/how-to-setup-a-julia-project-to-load-modules-depending-on-input-and-debug-in-vscode/78555
**Category:** VS Code
**Tags:** question
**Created:** [March 27, 2022, 3:38pm UTC](https://discourse.julialang.org/t/how-to-setup-a-julia-project-to-load-modules-depending-on-input-and-debug-in-vscode/78555 "2022-03-27T15:38:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sunayana](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sunayana](https://discourse.julialang.org/u/sunayana)
#### Post date: [March 27, 2022, 3:38pm UTC](https://discourse.julialang.org/t/how-to-setup-a-julia-project-to-load-modules-depending-on-input-and-debug-in-vscode/78555/1 "2022-03-27T15:38:16Z")

</div>

Hi All,

I am new to Julia and trying to setup a project structure in a way so that I can debug using vscode.  
My project structure looks like this:

```julia
├── Shared
│ ├── Project.toml
│ └── src
│ └── Shared.jl
├── Modules
│ └── Module_1
│ └── Module_1.jl
│ ├── Project.toml
│
│ └── Module_2
│ └── Module_2.jl
│ ├── Project.toml
├── main.jl
└── Project.toml

```

I would like to load a module in main.jl depending on input from user. I know that this can be done using `include` easily but then vscode does hit breakpoints in included files. Is there are way to load modules during runtime depending on user input so that I could debug in those files?  
Thanks

---

<div class="post-metadata">

### Author: ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)
#### Post date: [March 28, 2022, 5:47am UTC](https://discourse.julialang.org/t/how-to-setup-a-julia-project-to-load-modules-depending-on-input-and-debug-in-vscode/78555/2 "2022-03-28T05:47:38Z")

</div>

Not sure I understand your problem exactly, but maybe [https://github.com/JuliaPackaging/Requires.jl](https://github.com/JuliaPackaging/Requires.jl) can help?
