samp-cli
samp-cli copied to clipboard
[samp local issue]: Local Lamda debug - Windows issue
Not able to do local Lamba debugging on the Windows platform
What were you trying to accomplish? Debugging Lambda on Windows platform
Expected Behavior
To work on the Windows platform
Current Behavior
Unable to do local Lambda debug
Possible Solution
In the code (cdk-wrapper.js) most (all) path separators are hardcoded ('/'), but on Windows they are '\'. A possible solution is to use path.sep which uses different values depending on the platform. As a quick workaround, I could use it by adding entry = entry.replaceAll('\', '/'); in cdk-wrapper.js right after entry initialization.
Steps to Reproduce (for bugs)
- Try to run debugging of the Lambda
Environment
- SAM Patterns CLI version: tried with 1.0.56 but looks like nothing is changes related to it in new (1.0.67) version