Skip to content

Commit 7e66c75

Browse files
committed
Update development docs
1 parent e4aef79 commit 7e66c75

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

Diff for: docs/development-guide.md

+16-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ convenience - it proxies to the `package.json` files in the `vscode-client` and
1616
This guide presumes you have the following dependencies installed:
1717

1818
- [`yarn`][yarn].
19-
- [`node`][node] (v6 or newer)
19+
- [`node`][node] (v14 or newer)
2020
- `g++`
21-
- `make`
21+
- `make` (optional)
2222

2323
## Initial setup
2424

@@ -85,6 +85,20 @@ reload your vscode window to re-launch the server.
8585
yarn run reinstall-server
8686
```
8787

88+
If you for some reason cannot get access to logs through the client,
89+
then you can hack the `server/util/logger` with:
90+
91+
```typescript
92+
const fs = require('fs')
93+
const util = require('util')
94+
const log_file = fs.createWriteStream(`/tmp/bash-language-server-debug.log`, {
95+
flags: 'w',
96+
})
97+
98+
// inside log function
99+
log_file.write(`${severity} ${util.format(message)}\n`)
100+
```
101+
88102
## Performance
89103

90104
To analyze the performance of the extension or server using the Chrome inspector:

0 commit comments

Comments
 (0)