SolidStart debugging in VSCode

How can I debug (mean put breakpoints and step over code) SolidStart project in VSCode? I am currently working on a testing SolidStart project, which includes a connection to MongoDB. You can have a look at the project through my public repository: https://github.com/ondrej-osnet-cz/solid-cms To start local project please follow readme instruction. The project operates as anticipated, but I am experiencing difficulties in initiating a debugging session. I would like to specifically address two issues I have encountered: There is a pre-defined VSCode debug configuration named "Client debug" in the project. While this seems to function properly in component files on all lines (for example, in Counter.tsx file at https://github.com/ondrej-osnet-cz/solid-cms/blob/feature/db-connect-api/src/components/counter/Counter.tsx), it does not work on route/layout files. For instance, in the (default).tsx file (https://github.com/ondrej-osnet-cz/solid-cms/blob/feature/db-connect-api/src/routes/(default).tsx), VSCode does not display or hit the breakpoint, as tested on line 29 (https://github.com/ondrej-osnet-cz/solid-cms/blob/20a0cd10f0b64bab4ff9c27628b286c3cee1c78b/src/routes/(default).tsx#L29). Furthermore, I am struggling to debug the server-side (or API) code. Unfortunately, I am unsure of how to configure the debugger to start a debug session for the server. My aim is to hit breakpoints at these locations: https://github.com/ondrej-osnet-cz/solid-cms/blob/20a0cd10f0b64bab4ff9c27628b286c3cee1c78b/src/routes/api/v1/menu/index.tsx#L6 and https://github.com/ondrej-osnet-cz/solid-cms/blob/20a0cd10f0b64bab4ff9c27628b286c3cee1c78b/src/routes/(default).tsx#L15. Thanks for any help. Solid is a great framework but without debugging capabilities, I can't use it for larger projects.
GitHub
GitHub - ondrej-osnet-cz/solid-cms
Contribute to ondrej-osnet-cz/solid-cms development by creating an account on GitHub.
GitHub
solid-cms/src/routes/(default).tsx at 20a0cd10f0b64bab4ff9c27628b28...
Contribute to ondrej-osnet-cz/solid-cms development by creating an account on GitHub.
GitHub
solid-cms/src/routes/api/v1/menu/index.tsx at 20a0cd10f0b64bab4ff9c...
Contribute to ondrej-osnet-cz/solid-cms development by creating an account on GitHub.
0 Replies
No replies yetBe the first to reply to this messageJoin