-
Notifications
You must be signed in to change notification settings - Fork 954
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
Comments
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. |
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 |
Not happy to hear that but thanks very much for looking into it.
Ed Dhyne
Direct: 954-608-6603
***@***.******@***.***>
www.linkedin.com
From: Claas Augner ***@***.***>
Sent: Monday, October 9, 2023 2:19 PM
To: mdn/django-locallibrary-tutorial ***@***.***>
Cc: Ed Dhyne ***@***.***>; Mention ***@***.***>
Subject: Re: [mdn/django-locallibrary-tutorial] Visual Studio Code debugging (Issue #125)
I can't get VSCODE debugger to stop at any of my breakpoints in my templates/*.html
Hi @eddhyne<https://github.com/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 %}<https://docs.djangoproject.com/en/4.2/ref/templates/builtins/#debug> template tag. Hope that helps! 🤞
—
Reply to this email directly, view it on GitHub<#125 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AWFRBTGQYWTJ44CBQ4BGOJ3X6Q52ZAVCNFSM6AAAAAA5ULVG4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJTGQ2TGNBXGU>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Before submitting the issue, confirm that you've checked everything in the following list, and mark them as completed here:
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
The text was updated successfully, but these errors were encountered: