Closed filetvignon closed 11 months ago
Hello filetvignon,
I have not attempted to use the debugger with the unit tests, but I will try to replicate this issue in the next day or so.
Since nothing is happening when you click continue, my guess is that something is causing an exception that is not being reported to the VSCode interface.
Are you "Connecting" to a JavaScript or XQuery debug server?
In the meantime, can you use the "Evaluate Current JavaScript Module" launch configuration to debug the test? My launch configuration for that is:
{
"type": "ml-jsdebugger",
"request": "launch",
"name": "Evaluate Current JavaScript Module",
"root": "${workspaceFolder}/src/main/ml-modules/root",
}
Hi,
I managed to get this to work last night, but I am definitely encountering problems. What I have found is that there seems to be at least 1 bug in the MLXPRS code related to breakpoints. If I have breakpoints defined before attaching to the paused request, then I am seeing problems and the debug session frequently fails.
However, the debug session seems to be reliable when I follow these steps:
I will continue to research this. In the meantime, please try my method and let me know how things go.
Completed in 3.8 release
I haven't been able to make this extension work with marklogic's unit testing framework (https://developer.marklogic.com/code/marklogic-unit-test/)
I set the debugger configuration as such:
When I attach the request, it takes me to the first line of a
suiteSetup.sjs
file, but when I click continue nothing happens, and the test just stays as 'running' in the UI and never finishes.Anyone has any ideas on this?