Provide a way to get debug information back from sam build
- Dominant language
- Python
- Stars
- 6.7k
- Forks
- 1.2k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 52
Description
### Describe your idea/feature/enhancement
The toolkits need additional data back from SAM build in order to provide enough information to create the debuggers.
### Proposal
A common json file that abstracts away common data required by the IDEs can be created as part of sam build.
Such data would be:
1. For python, a mapping of remote path to local path for translation.
In PyCharm this data would be used to create a https://github.com/JetBrains/intellij-community/blob/master/python/pydevSrc/com/jetbrains/python/debugger/PyPositionConverter.java
In VSCode, this would be used to set the "pathMappings" array in the task.json
https://code.visualstudio.com/docs/python/debugging#_remote-debugging
2. For JavaScript / NodeJS, we also need path mappings as well as the sourcemaps back.
This would populate "localRoot" & "remoteRoot" as well as "outFiles" for source maps. https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_remote-debugging
I have not researched the WebStorm debugger but I know there is an interface we have to implement based on the prototype code JetBrains wrote for us: https://github.com/aws/aws-toolkit-jetbrains/commit/fab90ee505047f7a9c7b5b16072340b22aedbaa5
Contributor guide
Assessment
This issue has not been assessed yet.