This works, however, I'd like to be able to step into the callback function and debug it. (this example is pretty simple, but I have another one which isn't working and I would like to be able to debug it)
I've tried adding breakpoints, and I've tried adding debugger. I know the code is getting executed (in this situation the file is getting opened), but I'm not able to actually debug the code. I was wondering if anyone here has any tips or suggestions on how to do this?
I don't think this is possible. The code executed in executeWorkbench is run within a different process as the test which means it is not possible to attach a debugger to it.
The
vscode
instance/object can't be directly called, and I read that the preferred pattern is to do this:This works, however, I'd like to be able to step into the callback function and debug it. (this example is pretty simple, but I have another one which isn't working and I would like to be able to debug it)
I've tried adding breakpoints, and I've tried adding
debugger
. I know the code is getting executed (in this situation the file is getting opened), but I'm not able to actually debug the code. I was wondering if anyone here has any tips or suggestions on how to do this?Thanks!
Jeff