@@ -56,7 +56,7 @@ First You can give a `name` to your configuration, for instance `Debug Scala 3 C
56
56
57
57
The two most important parameters, to debug the compiler, are ` mainClass ` and ` args ` .
58
58
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.
60
60
61
61
To start with, we can compile the ` ../tests/pos/HelloWorld.scala ` file.
62
62
In the classpath, we always need at least the ` scala-library_2.13 ` and the bootstrapped ` scala3-library_3 ` .
72
72
73
73
Note that it is important to use the bootstrapped version of the ` scala3-library ` to get the correct TASTy version.
74
74
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.
76
76
77
77
Here is the final configuration:
78
78
``` json
@@ -84,7 +84,8 @@ Here is the final configuration:
84
84
"args" : [
85
85
" ../tests/pos/HelloWorld.scala" ,
86
86
" -classpath" ,
87
- // to replace with your own paths
87
+ // To replace with your own paths
88
+ // On Windows you must replace all '\' by '/'.
88
89
" /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" ,
89
90
" -color" ,
90
91
" never"
0 commit comments