Skip to content

Commit 5490e9d

Browse files
committed
add debugging docs
1 parent 3520b9b commit 5490e9d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

CONTRIBUTING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,13 @@ Not all bugs/features necessarily fit into either framework and that's OK. Howev
3434

3535
To read about the comparison test pack take a look [here](test/comparison-tests/README.md)
3636
To read about the execution test pack take a look [here](test/execution-tests/README.md)
37+
38+
## Debugging
39+
40+
To debug ts-loader itself:
41+
42+
```
43+
node --inspect-brk node_modules/webpack/bin/webpack.js --config webpack.dev.js # Obviously configure this depending upon your project setup
44+
```
45+
46+
Then put a breakpoint in `node_modules/ts-loader/dist/index.js`, and debug in VS Code with "Attach to Node Process". The dist is JS compiled from TS, but it’s still pretty readable.

0 commit comments

Comments
 (0)