launch.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {
  2. // 使用 IntelliSense 了解相关属性。
  3. // 悬停以查看现有属性的描述。
  4. // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [
  7. {
  8. "type": "R-Debugger",
  9. "name": "Launch R-Workspace",
  10. "request": "launch",
  11. "debugMode": "workspace",
  12. "workingDirectory": "${workspaceFolder}"
  13. },
  14. {
  15. "type": "R-Debugger",
  16. "name": "Debug R-File",
  17. "request": "launch",
  18. "debugMode": "file",
  19. "workingDirectory": "${workspaceFolder}",
  20. "file": "${file}"
  21. },
  22. {
  23. "type": "R-Debugger",
  24. "name": "Debug R-Function",
  25. "request": "launch",
  26. "debugMode": "function",
  27. "workingDirectory": "${workspaceFolder}",
  28. "file": "${file}",
  29. "mainFunction": "main",
  30. "allowGlobalDebugging": false
  31. },
  32. {
  33. "type": "R-Debugger",
  34. "name": "Debug R-Package",
  35. "request": "launch",
  36. "debugMode": "workspace",
  37. "workingDirectory": "${workspaceFolder}",
  38. "includePackageScopes": true,
  39. "loadPackages": [
  40. "."
  41. ]
  42. },
  43. {
  44. "type": "R-Debugger",
  45. "request": "attach",
  46. "name": "Attach to R process",
  47. "splitOverwrittenOutput": true
  48. }
  49. ]
  50. }