我正在使用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 }
1条答案
按热度按时间4smxwvx51#
如果我们使用(F5),调试可以从一个脚本到另一个脚本工作,但是如果我们使用(F10),调试就不工作了。