Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[samp local issue]: Local Lamda debug - Windows issue #27

Open
Galic-Miroslav opened this issue Dec 24, 2023 · 0 comments
Open

[samp local issue]: Local Lamda debug - Windows issue #27

Galic-Miroslav opened this issue Dec 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Galic-Miroslav
Copy link

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)

  1. 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
@Galic-Miroslav Galic-Miroslav added the bug Something isn't working label Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant