mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14:07 -04:00
patch 9.0.0688: debugger does not display the whole command
Problem: Debugger does not display the whole command. Solution: Set ea.cmd before checking for a breakpoint.
This commit is contained in:
@@ -1888,8 +1888,12 @@ do_one_cmd(
|
|||||||
script_line_exec();
|
script_line_exec();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
ea.cmd = cmd;
|
||||||
|
|
||||||
|
#ifdef FEAT_EVAL
|
||||||
// May go to debug mode. If this happens and the ">quit" debug command is
|
// May go to debug mode. If this happens and the ">quit" debug command is
|
||||||
// used, throw an interrupt exception and skip the next command.
|
// used, throw an interrupt exception and skip the next command.
|
||||||
dbg_check_breakpoint(&ea);
|
dbg_check_breakpoint(&ea);
|
||||||
@@ -1935,7 +1939,6 @@ do_one_cmd(
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
ea.cmd = cmd;
|
|
||||||
if (!may_have_range)
|
if (!may_have_range)
|
||||||
ea.line1 = ea.line2 = default_address(&ea);
|
ea.line1 = ea.line2 = default_address(&ea);
|
||||||
else if (parse_cmd_address(&ea, &errormsg, FALSE) == FAIL)
|
else if (parse_cmd_address(&ea, &errormsg, FALSE) == FAIL)
|
||||||
|
@@ -993,7 +993,6 @@ func Test_Backtrace_DefFunction()
|
|||||||
call RunDbgCmd(buf, 'step', ['line 1: vim9script'])
|
call RunDbgCmd(buf, 'step', ['line 1: vim9script'])
|
||||||
call RunDbgCmd(buf, 'step', ['line 3: def DoAThing(): number'])
|
call RunDbgCmd(buf, 'step', ['line 3: def DoAThing(): number'])
|
||||||
call RunDbgCmd(buf, 'step', ['line 9: export def File2Function()'])
|
call RunDbgCmd(buf, 'step', ['line 9: export def File2Function()'])
|
||||||
call RunDbgCmd(buf, 'step', ['line 9: def File2Function()'])
|
|
||||||
call RunDbgCmd(buf, 'step', ['line 13: defcompile'])
|
call RunDbgCmd(buf, 'step', ['line 13: defcompile'])
|
||||||
call RunDbgCmd(buf, 'step', ['line 14: File2Function()'])
|
call RunDbgCmd(buf, 'step', ['line 14: File2Function()'])
|
||||||
call RunDbgCmd(buf, 'backtrace', [
|
call RunDbgCmd(buf, 'backtrace', [
|
||||||
|
@@ -699,6 +699,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
688,
|
||||||
/**/
|
/**/
|
||||||
687,
|
687,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user