Skip to content

Commit 8fa00ea

Browse files
committed
Fix images in debbuging compiler guide
1 parent 5c5ef70 commit 8fa00ea

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

_overviews/scala3-contribution/procedures-debugging.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ First You can give a `name` to your configuration, for instance `Debug Scala 3 C
5656

5757
The two most important parameters, to debug the compiler, are `mainClass` and `args`.
5858
The `mainClass` of the compiler is `dotty.tools.dotc.Main`.
59-
In the `args` you need to specify the compiler arguments, which must contain at least a `.scala` file to compile and a `-classpath` option.
59+
In the `args` you need to specify the compiler arguments, which must contain at least a Scala file to compile and a `-classpath` option.
6060

6161
To start with, we can compile the `../tests/pos/HelloWorld.scala` file.
6262
In the classpath, we always need at least the `scala-library_2.13` and the bootstrapped `scala3-library_3`.
@@ -72,7 +72,7 @@ $ sbt
7272

7373
Note that it is important to use the bootstrapped version of the `scala3-library` to get the correct TASTy version.
7474

75-
Additionally you can add the `["-color", "never"]` arguments to prevent the compiler from printing ANSI codes as strings in the debug console.
75+
Additionally you can add the `-color` and `never` arguments to prevent the compiler from printing ANSI codes as strings in the debug console.
7676

7777
Here is the final configuration:
7878
```json
@@ -84,7 +84,8 @@ Here is the final configuration:
8484
"args": [
8585
"../tests/pos/HelloWorld.scala",
8686
"-classpath",
87-
// to replace with your own paths
87+
// To replace with your own paths
88+
// On Windows you must replace all '\' by '/'.
8889
"/home/user/lampepfl/dotty/out/bootstrap/scala3-library-bootstrapped/scala-3.3.1-RC1-bin-SNAPSHOT-nonbootstrapped/classes:/home/user/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.10/scala-library-2.13.10.jar",
8990
"-color",
9091
"never"
Loading
Loading

0 commit comments

Comments
 (0)