[VScode]#1 debug relative path

Clay Ryu's sound lab·2023년 10월 1일
0

Framework

목록 보기
30/49
post-thumbnail

when running debug, the path is messing up. So, I need to add a line("cwd": "${fileDirname}") in launch.json file which sets the folder I am currently located in as the starting point for debugging.

{
  // 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": true,
      "cwd": "${fileDirname}" # <<<------
    }
  ]
}
profile
chords & code // harmony with structure

0개의 댓글