-
Notifications
You must be signed in to change notification settings - Fork 156
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
Feedback on first usage #5
Comments
Hi, thanks for the feedback! I like the idea of evaluating the variable at the current line. The challenge I can see is how to parse the variable from the line, as it depends on the language and the expression syntax. Also, do you evaluate the result of the expression or the first variable you come across in the line? For instance, something like this: $myvar = 3; is fine - do_something( $param1, $param2, $param3); Do you give the evaulated result of the whole line, or the contents of I'm mostly thinking aloud here - if you have any suggestions then feel free to give them! I do really like this idea, and it will probably make its way in to the plugin in some form. As for closing the tree nodes, I did actually originally want to get that in, but it turned out to be quite a lot of work for not much return (or so I thought). However, I'll take another look and see if I can get that in. Thanks again for the suggestions! |
I've managed to get tree node closing working in the development branch. See commit 8a5fdea for the code, and pull the |
That's awesome! Gonna test it tomorrow at work! About the challenge in parsing the variable from current line: My (little) experience with the other clients is that they parse the variable under the cursor. I'm not that sure about when to evaluate the result, my knowledge about the DBGP protocol is basically zero. I can again only reflect on my previous experience with other clients, where my impression is that the current line is not evaluated, but when I hit F12 on a variable I get the content if it's set before the current line. If that makes any sense. |
It works great! But I got the following error message when hitting enter on a (already open) root node:
|
Closing a tree node that ends the watch window buffer no longer causes a memory error.
Thanks for that bug report, I've made a fix for it. It seems that it happened if the node that you wanted to close was the last thing in the watch window. Let me know if you still get it though! Thanks also for the extra info about evaluating the variable under the cursor: it sounds do-able, so I'll start working on that. There's plenty of new stuff that's gone into this development branch, so after getting that in I'll merge it back into master and release a new version of vdebug on vim.org. Thanks again for your suggestions! |
I've added support for evaluating the variable under the cursor, and have released a new version (1.1). Get it from the master branch or vim.org! Cheers |
Closing a tree node that ends the watch window buffer no longer causes a memory error.
Closing a tree node that ends the watch window buffer no longer causes a memory error.
Hi, this looks awesome!
Just tested it a little, and wanted to give a short feedback on first impression.
When stopping at a breakpoint, I want to quickly see what's in a variable. With previous debugger client I could just hit F12 and pop, the variable content gets displayed. Is this possible? Now I have to browse the list of variables (sometimes that can be a lot, depending on file and local scope), seems counter-intuitive.
Also, when expanding the variable tree node with enter, it would be super nice to also close the node again with enter!
Keep up the good work, I really appreciate the effort into making a better debugger! :-)
The text was updated successfully, but these errors were encountered: