facebook

Source Not not found when debugging nodeJS code

  1. CodeMix & Angular IDE
  2.  > 
  3. Getting Help

Tagged: ,

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #617914 Reply

    zhanzhang
    Participant

    Source 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.0

    The 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 4 years, 9 months ago by zhanzhang.
    Attachments:
    You must be logged in to view attached files.
    #617915 Reply

    zhanzhang
    Participant

    I mean “Source Not found”. I don’t know why word “Source” is trunked out

    #617941 Reply

    support-swapna
    Moderator

    zhanzhang,

    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

    #617987 Reply

    zhanzhang
    Participant

    Thank you Swapna. Please keep me updated for the fix.

    #629881 Reply

    zhanzhang
    Participant

    The issue has been reported for more than 3 months’ time, any update on this one when it will be fixed?

    #629918 Reply

    support-swapna
    Moderator

    zhanzhang,

    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

    #630127 Reply

    zhanzhang
    Participant

    Please resolve this one asap as debug is a critical function used by developers, without debugging Codemix plugin is pretty much not very helpful

    #633860 Reply

    zhanzhang
    Participant

    It 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 4 years, 4 months ago by zhanzhang.
    #634190 Reply

    support-swapna
    Moderator

    Hi,

    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

    #634244 Reply

    Hi 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 run npm install before trying to debug.

    Cheers,
    Sal

    Attachments:
    You must be logged in to view attached files.
    #634892 Reply

    zhanzhang
    Participant

    Hi 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.
    #634981 Reply

    Hi 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

    #634999 Reply

    zhanzhang
    Participant

    Thanks 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, 4 months ago by zhanzhang. Reason: upload video for detail
    Attachments:
    You must be logged in to view attached files.
    #635328 Reply

    Hi 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

    #635368 Reply

    zhanzhang
    Participant

    I 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?

Viewing 15 posts - 1 through 15 (of 16 total)
Reply To: Source Not not found when debugging nodeJS code

You must be logged in to post in the forum log in