GithubHelp home page GithubHelp logo

Comments (10)

uhexos avatar uhexos commented on May 25, 2024 7

as a workaround, I set "debug.allowBreakpointsEverywhere" to true and I can now set breakpoints as normally.

from vscode-django.

davidysoards avatar davidysoards commented on May 25, 2024 1

Having same problem. If I change the Language Mode to regular HTML I can set a breakpoint just fine. Then, I can change it back to Django HTML and the breakpoint persists.

from vscode-django.

Lakshmikanth2001 avatar Lakshmikanth2001 commented on May 25, 2024 1

issue is resolved in microsoft/vscode-python#19288 as they added breakpoint support for django-html and django-txt files

from vscode-django.

Lakshmikanth2001 avatar Lakshmikanth2001 commented on May 25, 2024 1

Please try to run the Django sample app inside vscode and set a breakpoint to any .djt file

from vscode-django.

Lakshmikanth2001 avatar Lakshmikanth2001 commented on May 25, 2024 1

vscode-python check the new vscode-python extension they have added this feature to their current release please check this out and close the issue if you are satisfied

from vscode-django.

mr-narender avatar mr-narender commented on May 25, 2024

Though @uhexos mentioned, one can do the workaround, but it be better if this can be resolved.

from vscode-django.

Lakshmikanth2001 avatar Lakshmikanth2001 commented on May 25, 2024
"breakpoints": [
            {
                "language": "html"
            },
            {
                "language": "jinja"
            },
            {
                "language": "python"
            }
        ],

from https://github.dev/Microsoft/vscode-python so python debugger is only valid for html, jinga, python so we need to request vscode python extension to include both django-html and django-text in their breakpoints

from vscode-django.

Lakshmikanth2001 avatar Lakshmikanth2001 commented on May 25, 2024

Quick Fix: go to C:\Users\{user}\.vscode\extensions\ms-python.python-2022.8.0 edit package.json by adding django-html and django-txt to breakpoints

from vscode-django.

Lakshmikanth2001 avatar Lakshmikanth2001 commented on May 25, 2024
"breakpoints": [
			{
				"language": "html"
			},
			{
				"language": "jinja"
			},
			{
				"language": "python"
			},
			{
				"language": "django-html"
			},
			{
				"language": "django-txt"
			}
		],

from vscode-django.

ShortArrow avatar ShortArrow commented on May 25, 2024

I haven't used django recently and can't decide if I should close this issue. I am disappointed to me😭.

from vscode-django.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.