Skip to content

Commit fddfa35

Browse files
committed
Use unit-threaded --debug switch
If an unhandled exception occurs in a vibe-core asynchronous task, it will never be displayed, because: 1. unit-threaded buffers output (std.stdio.stdout is reopened to /dev/null) 2. vibe.d calls abort after trying to print the exception. Work around this by updating our documentation and CI commands to use --debug, which disables unit-threaded output mucking.
1 parent 1fd402d commit fddfa35

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ jobs:
2323
if: matrix.dc != 'ldc-latest'
2424
run: |
2525
# Tests are neither random- nor parallelizable atm., so use a --single serial thread.
26-
dub test --compiler=$DC -- --single --trace
26+
dub test --compiler=$DC -- --single --trace --debug
2727
2828
- name: Test with coverage
2929
if: matrix.dc == 'ldc-latest'
3030
env:
3131
COVERAGE: true
3232
run: |
3333
# Mirrot the previous `run` step but with `--build=unittest-cov`
34-
dub test --compiler=$DC --build=unittest-cov -- --single --trace
34+
dub test --compiler=$DC --build=unittest-cov -- --single --trace --debug
3535
3636
- name: Upload code coverage
3737
if: matrix.dc == 'ldc-latest'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ Improve the bot
212212
Run the testsuite:
213213

214214
```
215-
dub test -- --single --debug --trace
215+
dub test -- --single --debug --trace --debug
216216
```
217217

218218
Missing a feature?

0 commit comments

Comments
 (0)