What Do I Do If the Source Code Cannot Be Accessed When I Use VS Code for Debugging?
If the launch.json file already exists, go to step 3.
- Method 1: Click Run (Ctrl+Shift+D) in the menu bar on the left and click create a launch.json file.
- Method 2: In the menu bar, choose Run > Open configurations.
Step 2: Select a language.
To set a Python language, select Python File in Select a debug configuration. The operations for setting other languages are similar.
Step 3: Set justMyCode to False in launch.json.
{ // 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": "Python: Current file", "type": "python", "request": "launch", "program": "${file}", "console": "integratedTerminal", "justMyCode": false } ] }
VS Code FAQs
- What Do I Do If Installing a Remote Plug-in Failed?
- What Do I Do If a Restarted Notebook Instance Can Be Connected Only After I Locally Delete known_hosts?
- What Do I Do If the Source Code Cannot Be Accessed When I Use VS Code for Debugging?
- What Do I Do If a Message Is Displayed Indicating an Incorrect Username or Email Address When I Use VS Code to Submit Code?
- How Can I View Remote Logs in VS Code?
- How Can I Open the VS Code Configuration File settings.json?
- How Can I Change the VS Code Background Color to Light Green?
- How Can I Set the Default Remote Plug-in in VS Code?
- How Can I Install a Local Plug-in on the Remote End or a Remote Plug-in on the Local End Through VS Code?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore