I am using visual studio code and truffle and would like to easily debug my JavaScript tests.

A similar question has been asked here: [how can I run a truffle test in a debugger?](https://ethereum.stackexchange.com/questions/14031). This has been wrongly marked as a duplicated and not been released.