Henry Lu
Henry Lu

Reputation: 49

How can I debug multi-project using VS Code?

I am working on a solution have several projects, you can see from following image:

enter image description here

And my question is I just can debug the main program but counld not debug the dependency project; Did it have any solutions to solve my problem? Can anyone give me reply?

Upvotes: 2

Views: 987

Answers (2)

Shivansh Jagga
Shivansh Jagga

Reputation: 1861

I had the same problem, I ran node --inspect on a separate port for each project separately. Run the command in the VS code terminal. Check this link for more details.

Upvotes: 0

Henry Lu
Henry Lu

Reputation: 49

I have found the solution,just modify the project.json so that you can touch breakPoint at the dependency project;

    "buildOptions": {
    "debugType": "portable"
  },

value debugType as portable

Upvotes: 1

Related Questions