trepan-ni
Version:
Trepan debugger for Node Inspect (and based on node inspect debugger)
32 lines (22 loc) • 872 B
JavaScript
// Copyright 2015, 2018 Rocky Bernstein
;
/*==============================================================
Debugger info 'files' command
Gives list of files loaded. An asterisk indicates if the file is the
current one we are stopped at.
arguments[0] tells if it should display internal node scripts or not.
This is available only for internal debugger's functions.
=============================================================*/
exports.Init = function(name, subcmd) {
return {
help: `List files loaded with their line counts.
Usage: **info 'files' [{true | false|}*
If the last parameter is "true", the internal scripts are included
in the list.
An asterisk indicates if the file is the current one we are stopped at.`,
paused: false,
run: function(intf, showInternal) {
intf.listScripts(showInternal);
}
};
};