All,
I've been using quickfix mode as a very effective debugger - what I do
is record the program that I'm running and append the output to a file
with 2 or 3 arguments.
Given this as input of code:
for ($xx = 0; $xx < 10; $xx++)
{
$yy+= $xx;
}
I get a quick fix window that looks like this:
Given
file.pl:12:
for ($xx = 0; $xx < 10; $xx) | for (0 = 0; 0 < 10; 0)
file.pl:14:
+= 0; | $yy += $xx;
file.pl:14:
0+=1; | $yy += $xx;
Tracing through this then becomes super easy - I have keys mapped in
quickfix mode which allow me to then step through my code with one
keypress. And I see the state information associated with each
variable while I'm doing it.
All of this is well and good, but there are still some big annoyances
1. I'd like to be able to 'hide' lines in the copen window. Say,
for example, I simply want trace all the the lines that ran in a
certain file, or function. I'd like to be able to mask everything else
so the only quickfix lines I see are ones that match my pattern
search.
2. The return character seems to be hardcoded in the definition of
a fold. Hence the above output shows the descriptive output as a
separate 'error' instead of attached to the preceeding line. I'd love
to be able to define *what* the return character is in any given file.
That way if I folded, deleted, or otherwise modified the input file, I
could do it in logical chunks rather than using the arbitrary return.
Anyways, I don't know if this stuff is already there, so I thought I'd
ask.. Any tips would be great..
Ed
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php