bahmutov / bahmutov/test-ts-node

How to debug?

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
enhancement question
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Debugging TS code works using `--inspect` mode and attaching DevTools, but only the second time (otherwise it does not know where and when to set breakpoints in TS files)

Could not get it to work from Visual Code

```
$ node --inspect --debug-brk .
Debugger listening on port 9229.
Warning: This is an experimental feature and could change at any time.
To start debugging, open the following URL in Chrome:
chrome-devtools://devtools/remote/serve_file/@60cd6e859b9f557d2312f5bf532f6aec5f284980/inspector.html?experiments=true&v8only=true&ws=localhost:9229/node
Debugger attached.
in main.ts, Node v6.8.1
10 + 20 30
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.