-
Notifications
You must be signed in to change notification settings - Fork 137
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
Validate template breakpoint targets #213
Comments
I started to take a look at it for django and I've hit a kind of roadblock: I've gone up to the point where it's possible to collect the lines from a django template, but to actually create a template (i.e.: instantiate The solutions I see are:
@int19h @karthiknadig I'm thinking about going with approach |
I think this is what the "breakpoint" event in DAP is supposed to be for. Specifically reporting a change for the breakpoint, and then when the client asks, reporting "verified" as true. |
Thanks for pointing that out. I'll see how to use that then. |
Using the Still, I was thinking, in the regular case, we actually change the breakpoint line if it was added to a wrong line... should we do that here too instead of notifying the user about the wrong line? Also, another question: I've implemented it such that initially breakpoints will appear disabled with a message: And then when the template is actually run it'll become enabled. Is that OK or should they appear enabled and then be disabled when the template code is actually run? |
If we have a way to move it to the correct line then I recommend doing so, since we already do it for python code. Appearing disabled and then become enabled is the way other languages do it too. So I think this is fine. |
No description provided.
The text was updated successfully, but these errors were encountered: