3 ms·
> As far as I can tell you can’t step through tests in the debugger Really? In Visual Studio Code this is as simple as: 1) Set a breakpoint in your test 2) H
by st3fan 9y ago
> As far as I can tell you can’t step through tests in the debugger
Really? In Visual Studio Code this is as simple as:
1) Set a breakpoint in your test
2) Hit the "Debug Test" button
See http://wopr.norad.org/~stefan/delve.png http://wopr.norad.org/~stefan/delve.png for this in action. Look how great this looks. And how you can see all your variables in the upper left section. How you can expand structs and inspect them.
In my experience this works really really well.
- lobster_johnson 9y agoDelve and the VSC integration is great. Just note that it's historically been quite buggy and unstable. Worse, for a long time it wasn't practically possible to use Delve on macOS due to changes introduced in 10.12 [1] [2]. It should be better now, though. [1] https://github.com/derekparker/delve/issues/645 https://github.com/derekparker/delve/issues/645 [2] https://github.com/aaronhackney/delve_on_mac/blob/master/README.md https://github.com/aaronhackney/delve_on_mac/blob/master/REA...