Skip to content

Commit 4663abd

Browse files
committed
Add debugging
1 parent 0c8db20 commit 4663abd

File tree

7 files changed

+39
-4
lines changed

7 files changed

+39
-4
lines changed

.vscode/launch.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "mix_task",
9+
"name": "Debug 2023",
10+
"request": "launch",
11+
"task": "run",
12+
"taskArgs": ["debug.exs"],
13+
"startApps": true,
14+
"projectDir": "${workspaceRoot}/2023"
15+
},
16+
{
17+
"type": "mix_task",
18+
"name": "Debug 2024",
19+
"request": "launch",
20+
"task": "run",
21+
"taskArgs": ["debug.exs"],
22+
"startApps": true,
23+
"projectDir": "${workspaceRoot}/2024"
24+
}
25+
]
26+
}

2023/debug.exs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# IO.inspect(Day1a.run())
2+
# IO.inspect(Day1b.run())
3+
# IO.inspect(Day2a.run())
4+
IO.inspect(Day2b.run())

2023/mix.exs

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ defmodule Aoc2023.MixProject do
2121
# Run "mix help deps" to learn about dependencies.
2222
defp deps do
2323
[
24-
# {:dep_from_hexpm, "~> 0.3.0"},
25-
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
24+
libgraph: "~> 0.16.0"
2625
]
2726
end
2827
end

2023/mix.lock

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
%{
2+
"libgraph": {:hex, :libgraph, "0.16.0", "3936f3eca6ef826e08880230f806bfea13193e49bf153f93edcf0239d4fd1d07", [:mix], [], "hexpm", "41ca92240e8a4138c30a7e06466acc709b0cbb795c643e9e17174a178982d6bf"},
3+
}

2024/debug.exs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
IO.inspect(Day1a.run())

2024/mix.exs

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ defmodule Aoc2024.MixProject do
2121
# Run "mix help deps" to learn about dependencies.
2222
defp deps do
2323
[
24-
# {:dep_from_hexpm, "~> 0.3.0"},
25-
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
24+
libgraph: "~> 0.16.0"
2625
]
2726
end
2827
end

2024/mix.lock

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
%{
2+
"libgraph": {:hex, :libgraph, "0.16.0", "3936f3eca6ef826e08880230f806bfea13193e49bf153f93edcf0239d4fd1d07", [:mix], [], "hexpm", "41ca92240e8a4138c30a7e06466acc709b0cbb795c643e9e17174a178982d6bf"},
3+
}

0 commit comments

Comments
 (0)