lambda-live-debugger 0.0.95 → 0.0.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -223,6 +223,15 @@ export async function getConfigFromWizard({ supportedFrameworks, currentFramewor
|
|
|
223
223
|
]);
|
|
224
224
|
answers.vscode = answersVsCode.vscode;
|
|
225
225
|
}
|
|
226
|
+
const answersVerbose = await inquirer.prompt([
|
|
227
|
+
{
|
|
228
|
+
type: "confirm",
|
|
229
|
+
name: "verbose",
|
|
230
|
+
message: "Do you want to use verbose logging? This will log all events to the console.",
|
|
231
|
+
default: currentConfig?.verbose === true,
|
|
232
|
+
},
|
|
233
|
+
]);
|
|
234
|
+
answers.verbose = answersVerbose.verbose;
|
|
226
235
|
}
|
|
227
236
|
/*
|
|
228
237
|
{
|
|
@@ -288,7 +297,7 @@ function getConfigFromAnswers(answers) {
|
|
|
288
297
|
interval: answers.interval !== undefined
|
|
289
298
|
? answers.interval
|
|
290
299
|
: defaultObservableInterval,
|
|
291
|
-
verbose:
|
|
300
|
+
verbose: answers.verbose,
|
|
292
301
|
interactive: answers.interactive,
|
|
293
302
|
gitignore: answers.gitignore,
|
|
294
303
|
vscode: answers.vscode,
|
|
Binary file
|
package/dist/lldebugger.mjs
CHANGED
|
@@ -24,7 +24,7 @@ async function run() {
|
|
|
24
24
|
const version = await getVersion();
|
|
25
25
|
await Configuration.readConfig();
|
|
26
26
|
Logger.setVerbose(Configuration.config.verbose === true);
|
|
27
|
-
Logger.verbose(`Parameters: \n
|
|
27
|
+
Logger.verbose(`Parameters: \n${Object.entries(Configuration.config)
|
|
28
28
|
.map(([key, value]) => ` - ${key}=${value}`)
|
|
29
29
|
.join("\n")}`);
|
|
30
30
|
Logger.verbose(`NPM module folder: ${getModuleDirname()}`);
|
package/dist/vsCode.mjs
CHANGED
|
@@ -28,6 +28,7 @@ async function getVsCodeLaunchConfig(lldConfig) {
|
|
|
28
28
|
let runtimeExecutableSet = false;
|
|
29
29
|
//if installed locally
|
|
30
30
|
if (moduleDirname.startsWith("/home/")) {
|
|
31
|
+
Logger.verbose("Lambda Live Debugger is installed locally");
|
|
31
32
|
// check if file exists
|
|
32
33
|
try {
|
|
33
34
|
//Logger.log("Checking local folder", localFolder);
|
|
@@ -40,10 +41,13 @@ async function getVsCodeLaunchConfig(lldConfig) {
|
|
|
40
41
|
//Logger.log("Not found", localFolder);
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
else {
|
|
45
|
+
Logger.verbose("Lambda Live Debugger is installed globally");
|
|
46
|
+
}
|
|
47
|
+
if (!runtimeExecutableSet) {
|
|
48
|
+
Logger.verbose(`Setting absolute path for runtimeExecutable setting for VsCode configuration`);
|
|
49
|
+
const globalModule1 = path.join(moduleDirname, "..", "..", ".bin/lld");
|
|
50
|
+
const globalModule2 = path.join(moduleDirname, "..", "..", "bin/lld");
|
|
47
51
|
const globalModule3 = path.join(moduleDirname, "..", "..", "..", "..", "bin/lld");
|
|
48
52
|
const possibleFolders = {
|
|
49
53
|
[localFolder]: "${workspaceFolder}/node_modules/.bin/lld",
|
|
@@ -51,6 +55,7 @@ async function getVsCodeLaunchConfig(lldConfig) {
|
|
|
51
55
|
[globalModule2]: globalModule2,
|
|
52
56
|
[globalModule3]: globalModule3,
|
|
53
57
|
};
|
|
58
|
+
Logger.verbose(`Checking the following possible folders for lld executable:`, JSON.stringify(possibleFolders, null, 2));
|
|
54
59
|
// check each possible folder and set the runtimeExecutable
|
|
55
60
|
for (const folder in possibleFolders) {
|
|
56
61
|
try {
|
|
@@ -58,11 +63,11 @@ async function getVsCodeLaunchConfig(lldConfig) {
|
|
|
58
63
|
await fs.access(folder, fs.constants.F_OK);
|
|
59
64
|
config.configurations[0].runtimeExecutable = possibleFolders[folder];
|
|
60
65
|
runtimeExecutableSet = true;
|
|
61
|
-
|
|
66
|
+
Logger.verbose(`Found folder with lld executable: ${folder}`);
|
|
62
67
|
break;
|
|
63
68
|
}
|
|
64
69
|
catch (err) {
|
|
65
|
-
//
|
|
70
|
+
// Not found
|
|
66
71
|
}
|
|
67
72
|
}
|
|
68
73
|
if (!runtimeExecutableSet) {
|