Answer a question

How do I set my workspace folder in Visual Studio Code?

This appears to be necessary for debugging, and I suspect it's why my breakpoints aren't getting hit.

Further reading:

  1. This question about adding workspaces doesn't have an accepted answer.
  2. What is a 'workspace' in VS Code?, while providing a wealth of information, does not explain how to set a workspace for debugging.
  3. User and Workspace Settings. The documentation also does not mention how to set a workspace for debugging.

Answers

How do I set my workspace folder in Visual Studio Code?

  1. Open Visual Studio Code. You should be on the Welcome page.
  2. Add workspace folder...

Add workspace folder link

  1. File explorer opens. Select the folder you want for your workspace. Add.

Now your workspace folder is shown in the left pane :-)

workspace folder

Logo

开发云社区提供前沿行业资讯和优质的学习知识,同时提供优质稳定、价格优惠的云主机、数据库、网络、云储存等云服务产品

更多推荐