debugging 使用调试shell脚本vscode切换脚本

pdkcd3nj  于 2023-01-17  发布在  Shell
关注(0)|答案(1)|浏览(141)

我正在使用RemoteVS Code Bash Debug调试shell脚本。我想知道是否有办法将调试从主脚本切换到主脚本调用的脚本。
示例:main.sh脚本调用fonctions_common. sh脚本中的函数我想在fonctions_common. sh脚本中添加断点并将调试切换到该脚本我在fonctions_common. sh脚本中放置了断点,但它不起作用我使用此配置:{ "type": "bashdb", "request": "launch", "name": "Bash-Debug (select script from list of sh files)", "cwd": "${workspaceFolder}", "program": "${command:SelectScriptName}", "args": [], "showDebugOutput": true }

4smxwvx5

4smxwvx51#

如果我们使用(F5),调试可以从一个脚本到另一个脚本工作,但是如果我们使用(F10),调试就不工作了。

相关问题