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

Add debug configuration for VSCode #2055

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hanagasira
Copy link
Contributor

What does this PR do?

Add configuration and documentation to allow debugging of premake scripts from VSCode.
If it would be better to add debug settings and documentation changes to a separate PR, I will do so.

How does this PR change Premake's behavior?

When running the test script from VSCode, Add module loading process for local lua debugger at the beginning of the premake test script.

Anything else we should know?

There is still a problem with premake test script execution where debugging pauses at the first exception raised in the test script.
Pressing the F5 key again will execute the rest of the script, but the cause of this problem is not known.

Did you check all the boxes?

  • Focus on a single fix or feature; remove any unrelated formatting or code changes
  • Add unit tests showing fix or feature works; all tests pass
  • Mention any related issues (put closes #XXXX in comment to auto-close issue when PR is merged)
  • Follow our coding conventions
  • Minimize the number of commits
  • Align documentation to your changes

You can now support Premake on our OpenCollective. Your contributions help us spend more time responding to requests like these!

@hanagasira hanagasira force-pushed the vscode_debug branch 7 times, most recently from 0b82484 to 1d939e1 Compare April 16, 2023 14:33
@hanagasira hanagasira force-pushed the vscode_debug branch 2 times, most recently from 6d00668 to 076fc61 Compare April 20, 2023 14:34
@hanagasira hanagasira marked this pull request as ready for review April 20, 2023 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants