This is also related to this post and @pfitzseb has created an issue on Github related to top level debugging, currently in backlog (see here)
So do think there is currently a solution (except wrap the code into a function) but thanks to the wonderful VSCode dev, we may have one soon
1 Like