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

[developer productivity improvement] Running awx components in vscode debugger #14942

Merged
merged 10 commits into from
Mar 7, 2024

Conversation

TheRealHaoLiu
Copy link
Member

@TheRealHaoLiu TheRealHaoLiu commented Feb 29, 2024

SUMMARY
ISSUE TYPE
  • New or Enhanced Feature
COMPONENT NAME
  • Other
AWX VERSION
awx: 23.9.1.dev7+g8856e1ce95
ADDITIONAL INFORMATION

@TheRealHaoLiu TheRealHaoLiu marked this pull request as draft March 1, 2024 00:22
@TheRealHaoLiu TheRealHaoLiu changed the title [PoC] running awx in vscode debugger [PoC] running awx components in vscode debugger Mar 1, 2024
@jbradberry jbradberry removed their request for review March 6, 2024 19:01
@TheRealHaoLiu
Copy link
Member Author

note the api-schema test fail bc

         "CSRF_TRUSTED_ORIGINS": {
-          "default": [],
+          "default": [
+            "https://localhost:8043"
+          ],

we run schema check with development settings... the default didn't actually change

@TheRealHaoLiu TheRealHaoLiu marked this pull request as ready for review March 6, 2024 19:10
@TheRealHaoLiu TheRealHaoLiu changed the title [PoC] running awx components in vscode debugger [developer productivity improvement] Running awx components in vscode debugger Mar 6, 2024
@dmzoneill dmzoneill marked this pull request as draft March 7, 2024 00:18
@TheRealHaoLiu TheRealHaoLiu marked this pull request as ready for review March 7, 2024 16:24
@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label Mar 7, 2024
@TheRealHaoLiu TheRealHaoLiu enabled auto-merge (squash) March 7, 2024 19:20
@TheRealHaoLiu TheRealHaoLiu merged commit 3f2f7b7 into ansible:devel Mar 7, 2024
20 of 21 checks passed
djyasin pushed a commit to djyasin/awx that referenced this pull request Sep 16, 2024
… debugger (ansible#14942)

Enable VSCode debugger integration when attaching VSCode to with AWX docker-compose development environment container

- add debugpy launch target in `.vscode/launch.json` to enable launching awx processes with debugpy
- add vscode tasks in `.vscode/tasks.json` to facilitate shutting down corresponding supervisord managed processes while launching process with debugpy
- modify nginx conf to add django runserver as fallback to uwsgi (enable launching API server via debugpy)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:api dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants