Default traces file names are:
-
For versions < 24.0.6:
You will need to create a traces file manually under
$HOME/.als/traces.cfg
. You can use the following contents as a starter:>ada_ls_log.$T.log:buffer_size=0 ALS.MAIN=yes ALS.IN=no ALS.OUT=no
This will produce
ada_ls_log.<timestamp>.log
log files for each Ada Language Server instance that gets spawned, either for Ada code or GPR files. -
For the 24.0.6 version:
Default traces file name is
$HOME/.als/traces.cfg
. This file gets automatically created if not present on the disk. -
For versions > 24.0.6:
$HOME/.als/ada_ls_traces.cfg
for the language server spawned for Ada code, which produceada_ls_log.<timestamp>.log
log files by default.$HOME/.als/gpr_ls_traces.cfg
for the language server spawned for GPR files, which producegpr_ls_log.<timestamp>.log
log files by default.
These files gets automatically created if not present on the disk.
The first line of the traces files defines the traces output stream (a filename in our case) and the other lines are used to enable or disable traces.
Note that you can provide another traces file via the --tracefile=<FILE>
command line option.
Here is a list of the most useful supported traces:
Shows all the server's input. Use this way:
ALS.IN=yes
Shows all the server's output. Use this way:
ALS.OUT=yes
Trace requests, notifications and responses in ALS log files. Will also log any exception that occurs when handling LSP requests.
ALS.MAIN=yes
Request incremental (if yes
) or full content (if no
)
text document syncronization
in initialize
response.
ALS.ALLOW_INCREMENTAL_TEXT_CHANGES=no
Log lalpp output if yes
.
ALS.LAL_PP_OUTPUT_ON_FORMATTING=yes
Use GNATformat as format provider.
ALS.GNATFORMAT=yes