Skip to content

Commit ca705f6

Browse files
authored
update readme debugging sestion to work with jest (#111)
updates readme debugging section to work with jest
1 parent d33f670 commit ca705f6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ DAP compliant debugger
122122

123123
#### Vim
124124

125-
- Start the node process with inspect-brk `yarn compile && node --inspect-brk ./dist/src/index.js` in one terminal.
125+
- Start the node process with inspect-brk `yarn bundle && node
126+
--enable-source-maps --inspect-brk ./dist/src/index.js` in one terminal.
126127
- Open src/index.ts `vim ./src/index.ts` in another terminal.
127128
- Set breakpoint in line 6 (F9 is the default mapping)
128129
- Start vimspector by pressing F5
@@ -137,7 +138,9 @@ DAP compliant debugger
137138

138139
#### Vim
139140

140-
- Start the node process with inspect-brk `yarn compile && node --inspect-brk --test --test-reporter spec` in one terminal.
141+
- Start the node process with inspect-brk `node --enable-source-maps
142+
--inspect-brk --no-lazy ./node_modules/.bin/jest --runInBand .` in one
143+
terminal.
141144
- Open src/index.ts `vim ./src/hello.test.ts` in another terminal.
142145
- Set breakpoint in line 8 (F9 is the default mapping)
143146
- Start vimspector by pressing F5

0 commit comments

Comments
 (0)