Mercurial > vim
comparison src/testdir/test_debugger.vim @ 21917:94376326c096 v8.2.1508
patch 8.2.1508: not all debugger commands covered by tests
Commit: https://github.com/vim/vim/commit/c63b72b6dc1347530ce906b462bb568994552c8b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 22 16:04:52 2020 +0200
patch 8.2.1508: not all debugger commands covered by tests
Problem: Not all debugger commands covered by tests.
Solution: Add tests for going up/down in the stack. (Ben Jackson,
closes #6765)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 22 Aug 2020 16:15:04 +0200 |
parents | 99fe9e960207 |
children | 595ea7f099cd |
comparison
equal
deleted
inserted
replaced
21916:153acbd05e5d | 21917:94376326c096 |
---|---|
591 \ ' 2 CallAFunction[1]', | 591 \ ' 2 CallAFunction[1]', |
592 \ ' 1 SourceAnotherFile[1]', | 592 \ ' 1 SourceAnotherFile[1]', |
593 \ '->0 script ' .. getcwd() .. '/Xtest2.vim', | 593 \ '->0 script ' .. getcwd() .. '/Xtest2.vim', |
594 \ 'line 1: func DoAThing()']) | 594 \ 'line 1: func DoAThing()']) |
595 | 595 |
596 call RunDbgCmd( buf, 'up' ) | |
597 call RunDbgCmd( buf, 'backtrace', [ | |
598 \ '>backtrace', | |
599 \ ' 4 User Autocommands for "TestGlobalFunction"', | |
600 \ ' 3 function GlobalFunction[1]', | |
601 \ ' 2 CallAFunction[1]', | |
602 \ '->1 SourceAnotherFile[1]', | |
603 \ ' 0 script ' .. getcwd() .. '/Xtest2.vim', | |
604 \ 'line 1: func DoAThing()' ] ) | |
605 | |
606 call RunDbgCmd( buf, 'up' ) | |
607 call RunDbgCmd( buf, 'backtrace', [ | |
608 \ '>backtrace', | |
609 \ ' 4 User Autocommands for "TestGlobalFunction"', | |
610 \ ' 3 function GlobalFunction[1]', | |
611 \ '->2 CallAFunction[1]', | |
612 \ ' 1 SourceAnotherFile[1]', | |
613 \ ' 0 script ' .. getcwd() .. '/Xtest2.vim', | |
614 \ 'line 1: func DoAThing()' ] ) | |
615 | |
616 call RunDbgCmd( buf, 'up' ) | |
617 call RunDbgCmd( buf, 'backtrace', [ | |
618 \ '>backtrace', | |
619 \ ' 4 User Autocommands for "TestGlobalFunction"', | |
620 \ '->3 function GlobalFunction[1]', | |
621 \ ' 2 CallAFunction[1]', | |
622 \ ' 1 SourceAnotherFile[1]', | |
623 \ ' 0 script ' .. getcwd() .. '/Xtest2.vim', | |
624 \ 'line 1: func DoAThing()' ] ) | |
625 | |
626 call RunDbgCmd( buf, 'up' ) | |
627 call RunDbgCmd( buf, 'backtrace', [ | |
628 \ '>backtrace', | |
629 \ '->4 User Autocommands for "TestGlobalFunction"', | |
630 \ ' 3 function GlobalFunction[1]', | |
631 \ ' 2 CallAFunction[1]', | |
632 \ ' 1 SourceAnotherFile[1]', | |
633 \ ' 0 script ' .. getcwd() .. '/Xtest2.vim', | |
634 \ 'line 1: func DoAThing()' ] ) | |
635 | |
636 call RunDbgCmd( buf, 'up', [ 'frame at highest level: 4' ] ) | |
637 call RunDbgCmd( buf, 'backtrace', [ | |
638 \ '>backtrace', | |
639 \ '->4 User Autocommands for "TestGlobalFunction"', | |
640 \ ' 3 function GlobalFunction[1]', | |
641 \ ' 2 CallAFunction[1]', | |
642 \ ' 1 SourceAnotherFile[1]', | |
643 \ ' 0 script ' .. getcwd() .. '/Xtest2.vim', | |
644 \ 'line 1: func DoAThing()' ] ) | |
645 | |
646 call RunDbgCmd( buf, 'down' ) | |
647 call RunDbgCmd( buf, 'backtrace', [ | |
648 \ '>backtrace', | |
649 \ ' 4 User Autocommands for "TestGlobalFunction"', | |
650 \ '->3 function GlobalFunction[1]', | |
651 \ ' 2 CallAFunction[1]', | |
652 \ ' 1 SourceAnotherFile[1]', | |
653 \ ' 0 script ' .. getcwd() .. '/Xtest2.vim', | |
654 \ 'line 1: func DoAThing()' ] ) | |
655 | |
656 | |
657 call RunDbgCmd( buf, 'down' ) | |
658 call RunDbgCmd( buf, 'backtrace', [ | |
659 \ '>backtrace', | |
660 \ ' 4 User Autocommands for "TestGlobalFunction"', | |
661 \ ' 3 function GlobalFunction[1]', | |
662 \ '->2 CallAFunction[1]', | |
663 \ ' 1 SourceAnotherFile[1]', | |
664 \ ' 0 script ' .. getcwd() .. '/Xtest2.vim', | |
665 \ 'line 1: func DoAThing()' ] ) | |
666 | |
667 call RunDbgCmd( buf, 'down' ) | |
668 call RunDbgCmd( buf, 'backtrace', [ | |
669 \ '>backtrace', | |
670 \ ' 4 User Autocommands for "TestGlobalFunction"', | |
671 \ ' 3 function GlobalFunction[1]', | |
672 \ ' 2 CallAFunction[1]', | |
673 \ '->1 SourceAnotherFile[1]', | |
674 \ ' 0 script ' .. getcwd() .. '/Xtest2.vim', | |
675 \ 'line 1: func DoAThing()' ] ) | |
676 | |
677 call RunDbgCmd( buf, 'down' ) | |
678 call RunDbgCmd( buf, 'backtrace', [ | |
679 \ '>backtrace', | |
680 \ ' 4 User Autocommands for "TestGlobalFunction"', | |
681 \ ' 3 function GlobalFunction[1]', | |
682 \ ' 2 CallAFunction[1]', | |
683 \ ' 1 SourceAnotherFile[1]', | |
684 \ '->0 script ' .. getcwd() .. '/Xtest2.vim', | |
685 \ 'line 1: func DoAThing()' ] ) | |
686 | |
687 call RunDbgCmd( buf, 'down', [ 'frame is zero' ] ) | |
688 | |
596 " step until we have another meaninfgul trace | 689 " step until we have another meaninfgul trace |
597 call RunDbgCmd(buf, 'step', ['line 5: func File2Function()']) | 690 call RunDbgCmd(buf, 'step', ['line 5: func File2Function()']) |
598 call RunDbgCmd(buf, 'step', ['line 9: call File2Function()']) | 691 call RunDbgCmd(buf, 'step', ['line 9: call File2Function()']) |
599 call RunDbgCmd(buf, 'backtrace', [ | 692 call RunDbgCmd(buf, 'backtrace', [ |
600 \ '>backtrace', | 693 \ '>backtrace', |