九游平台/ ai开发平台modelarts/ 常见问题/ standard notebook/ 在modelarts的notebook中使用vs code调试代码无法进入源码怎么办?
更新时间:2025-02-27 gmt 08:00

在modelarts的notebook中使用vs code调试代码无法进入源码怎么办?-九游平台

如果已有launch.json文件,请直接看步骤三。

步骤一:打开launch.json文件
  • 方法一:单击左侧菜单栏的run(ctrl shift d)按钮,再单击create a launch.json file。如下图所示:

  • 方法二:单击上侧菜单栏中的run > open configurations按钮

步骤二:选择语言

如果需要对python语言进行设置,在弹出的select a debug configuration中选择python file,其他语言操作类似。如下图所示:

步骤三:编辑launch.json,增加justmycode": false配置,如下所示。

	    {
	        "version": "0.2.0",
	        "configurations": [
	            {
	                "name": "python: 当前文件",
	                "type": "python",
	                "request": "launch",
	                "program": "${file}",
	                "console": "integratedterminal",
	                "justmycode": false
	            }
	        ]
	    }

相关文档

网站地图