launch.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {
  2. // Use IntelliSense to learn about possible attributes.
  3. // Hover to view descriptions of existing attributes.
  4. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [
  7. {
  8. "type": "R-Debugger",
  9. "request": "attach",
  10. "name": "Attach to R process",
  11. "splitOverwrittenOutput": true
  12. },
  13. {
  14. "type": "R-Debugger",
  15. "name": "Launch R-Workspace",
  16. "request": "launch",
  17. "debugMode": "workspace",
  18. "workingDirectory": "${workspaceFolder}"
  19. },
  20. {
  21. "type": "R-Debugger",
  22. "name": "Debug R-File",
  23. "request": "launch",
  24. "debugMode": "file",
  25. "workingDirectory": "${fileFolder}",
  26. "file": "${file}",
  27. },
  28. {
  29. "type": "R-Debugger",
  30. "name": "Debug R-Function",
  31. "request": "launch",
  32. "debugMode": "function",
  33. "workingDirectory": "${workspaceFolder}",
  34. "file": "${file}",
  35. "mainFunction": "main",
  36. "allowGlobalDebugging": false
  37. },
  38. {
  39. "type": "R-Debugger",
  40. "name": "Debug R-Package",
  41. "request": "launch",
  42. "debugMode": "workspace",
  43. "workingDirectory": "${workspaceFolder}",
  44. "includePackageScopes": true,
  45. "loadPackages": [
  46. "."
  47. ]
  48. }
  49. ]
  50. }