vscode-perl-debug icon indicating copy to clipboard operation
vscode-perl-debug copied to clipboard

getStackTrace cannot handle calls with multiple arguments

Open hoehrmann opened this issue 5 years ago • 0 comments

The regex in adapter.ts function getStackTrace cannot handle calls with multiple arguments:

// > @ = DB::DB called from file 'lib/Module2.pm' line 5
// > . = Module2::test2() called from file 'test.pl' line 12
const m = line.match(/^(\S+) = (\S+) called from file \'(\S+)\' line ([0-9]+)$/);

versus lines like

@ = Grammar::Graph::convert_rule(ref(ARRAY), ref(Grammar::Graph), undef) called from file '.../Grammar/Graph.pm' line 487

hoehrmann avatar Mar 17 '19 22:03 hoehrmann