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

Visual Studio Code debugging #125

Closed
4 tasks done
eddhyne opened this issue Oct 5, 2023 · 3 comments
Closed
4 tasks done

Visual Studio Code debugging #125

eddhyne opened this issue Oct 5, 2023 · 3 comments
Labels

Comments

@eddhyne
Copy link

eddhyne commented Oct 5, 2023

Before submitting the issue, confirm that you've checked everything in the following list, and mark them as completed here:

  • Issue is reproducible on this repository by following the quick-start instructions.
  • A clean/fresh database was used when the issue was encountered.
  • Information about the environment setup when the issue was encountered is included in the issue.
  • Output logs are included in the issue.

What was incorrect, unhelpful, or unexpected?

I can't get VSCODE debugger to stop at any of my breakpoints in my templates/*.html
my launch.json file is:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Django",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}\django_projects\manage.py",
"args": [
"runserver"
],
"django": true,
"justMyCode": false,
"host": "localhost"
}
]
}

What did you expect to see?

A stop in execution at my breakpoint

Output logs

No response

Do you have anything more you want to share?

No response

@eddhyne eddhyne added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Oct 5, 2023
@github-actions
Copy link

github-actions bot commented Oct 5, 2023

It looks like this is your first issue. Welcome! 👋 One of the project maintainers will be with you as soon as possible. We appreciate your patience. To safeguard the health of the project, please take a moment to read our code of conduct.

@caugner caugner added question and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Oct 9, 2023
@caugner
Copy link

caugner commented Oct 9, 2023

I can't get VSCODE debugger to stop at any of my breakpoints in my templates/*.html

Hi @eddhyne, 👋

I don't think it is possible at all to stop at breakpoints in templates, unfortunately. These templates are not executed line by line, but rather parsed as a whole by the templating engine.

If you need to debug a template, you might be able to use the {% debug %} template tag. Hope that helps! 🤞

@caugner caugner closed this as not planned Won't fix, can't repro, duplicate, stale Oct 9, 2023
@eddhyne
Copy link
Author

eddhyne commented Oct 9, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants