Recently, I delved into the world of JavaScript/TypeScript development in VS Code. Intrigued by Eclipse Theia, I decided to explore it further by setting up a backend service. To track its execution, I added a logpoint to my backend service to see when it is triggered.
https://i.sstatic.net/4jA2r.jpg
However, to my disappointment, whenever the execution hits the designated line, it pauses. Only after manually resuming the execution, the expected log message appears on the console.
This is how I've set things up:
In my project https://github.com/xpomul/theia-boilerplate, I have a branch named hello-world
.
I'm using VS Code 1.63.2 along with the Remote Containers Extension.
Here's what my workflow looks like:
- Launch VS Code
- Select "Remote-Containers: Clone Repository in Container Volume..." and clone the repository branch https://github.com/xpomul/theia-boilerplate -
hello-world
- After installation completion, open
hello-world-impl.ts
and insert a logpoint with the expressiontest
in line 7 (indicated by a diamond symbol) - Switch to the Run/Debug view, choose the
Launch Backend
launch configuration, and start it - Access a browser at
http://127.0.0.1:3000
and click onEdit > Say Hello
I anticipated that the backend would keep running smoothly and display test
in the log. Unfortunately, instead of continuing execution, it halts at the logpoint line, compelling me to resume manually.
What could be causing this issue? Is it a configuration problem? Does the functionality of logpoints depend on the Node version (Theia uses Node 12...), which might not yet be supported? Or could it be due to TypeScript or inversify usage?
UPDATE: Additionally, I've included a debug trace file for reference: