- This topic has 12 replies, 3 voices, and was last updated 5 years, 1 month ago by Salvador Cabrera.
-
AuthorPosts
-
zhanzhangParticipantSource Not not found when debugging nodeJS code. I am using Eclipse Version: 2018-12 (4.10.0)
Build id: 20181214-0600 NodeJS version v11.11.0The option I choose to Launch debug is Node::CodeMix Launch
launch.json is
// Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 { "version": "0.2.0", "configurations": [ { "name": "Launch app.js", "type": "node", "console": "integratedTerminal", "request": "launch", "program": "${workspaceFolder}/src/app.js", "cwd": "${workspaceFolder}/src" } ] }
Screenshot:
- This topic was modified 5 years, 5 months ago by zhanzhang.
Attachments:
You must be logged in to view attached files.
zhanzhangParticipantI mean “Source Not found”. I don’t know why word “Source” is trunked out
support-swapnaModeratorzhanzhang,
Sorry that you are seeing this issue.
It looks like a known issue where source from node_modules is not shown while debugging.
I have filed a report with the dev team to look into it. We will keep you posted when the fix is out.Apologies for inconvenience caused. Thank you for reporting it.
–Swapna
Genuitec Support
zhanzhangParticipantThank you Swapna. Please keep me updated for the fix.
zhanzhangParticipantThe issue has been reported for more than 3 months’ time, any update on this one when it will be fixed?
support-swapnaModeratorzhanzhang,
Apologies for not getting it prioritized earlier due to other higher priority issues. The dev team will look into it soon.
Thank you for your patience.–Swapna
Genuitec Support
zhanzhangParticipantPlease resolve this one asap as debug is a critical function used by developers, without debugging Codemix plugin is pretty much not very helpful
zhanzhangParticipantIt has been 5 months’ time and the issue is till there.
Please instruct the date the problem can be resolved
I am paid subscriber and the plugin cannot even support with debugging.- This reply was modified 5 years ago by zhanzhang.
support-swapnaModeratorHi,
Apologies for the delay. The dev team is currently looking into this issue.
We will get back to you soon.Thank you for your patience.
–Swapna
Genuitec Support
Salvador CabreraMemberHi zhanzhang,
Can you share more info about the project you’re trying to debug? Like, is your project an isomorphic app? Is there any kind of transpiling process in your pipeline ?
Also can you confirm what version of CodeMix are you using ?
I have attached an example project that you can use in order to verify that debugging is working on your side, just runnpm install
before trying to debug.Cheers,
SalAttachments:
You must be logged in to view attached files.
zhanzhangParticipantHi Sal,
Thanks for the response.
It is a regular nodeJS project, I have attached a video for details.
When source not found error happens, I have tried to click on Edit Source lookup path button and set the source code location but it does hot help.Attachments:
You must be logged in to view attached files.
Salvador CabreraMemberHi zhanzhang,
There might be some problem with the source resolution.
Can you share the contents of EasyChatWeb/.vscode/launch.json again ?
Also, were you able to debug without issues using the project that i shared ?
Does this happens with other projects or only for this one ?Cheers,
Sal
zhanzhangParticipantThanks Sal for the response . Please find the complete detail of my launch.json at the following:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
“version”: “0.2.0”,
“configurations”: [
{
“type”: “node”,
“request”: “launch”,
“name”: “Launch Program”,
“program”: “${workspaceFolder}/src/app.js”,
“cwd”: “${workspaceFolder}/src”
},
{
“name”: “Launch ws.js”,
“type”: “node”,
“console”: “integratedTerminal”,
“request”: “launch”,
“program”: “${workspaceFolder}/src/ws.js”,
“cwd”: “${workspaceFolder}/src”
}
]
}I am not able to debug your project “cmnode” neither. The same problem happens when I debug. Please see the screenshot & video for details.I have already executed “npm instal” before debugging.
- This reply was modified 4 years, 12 months ago by zhanzhang. Reason: upload video for detail
Attachments:
You must be logged in to view attached files.
Salvador CabreraMemberHi zhanzhang,
Your launch.json looks fine, it is weird that it is also happening with the project that i shared.
We need to look more deeply at what’s going on, any chance you can join us via LiveChat ? (Help > CodeMix > LiveChat…)Cheers,
Sal
zhanzhangParticipantI am currently based in Sydney, Australia so the time zone could be a problem for a live chat. However, please let me know what do you need as I have already provided Eclipse version and build number, also I have confirmed that your project does not work with a video uploaded.
Therefore, I guess it might be good enough for you to reproduce the issue?
-
AuthorPosts