From 9e6471908997015894b8f8fff27fc9f3d4440470 Mon Sep 17 00:00:00 2001 From: Alee Date: Sun, 15 Apr 2018 11:13:06 -0400 Subject: More changes in debug mode --- .vscode/launch.json | 14 +++++++++++++- bot_discord.js | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index c2b08f1..ae7bde3 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -8,7 +8,19 @@ "type": "node", "request": "launch", "name": "Launch Program", - "program": "${workspaceFolder}/bot_discord.js" + "program": "${workspaceFolder}/bot_discord.js", + "console": "integratedTerminal", + + }, + { + "type": "node", + "request": "launch", + "name": "Launch Program with debug mode", + "program": "${workspaceFolder}/bot_discord.js", + "console": "integratedTerminal", + "args": [ + "--debug" + ] } ] } \ No newline at end of file diff --git a/bot_discord.js b/bot_discord.js index 5034885..2149538 100644 --- a/bot_discord.js +++ b/bot_discord.js @@ -38,7 +38,7 @@ console.log ('This is free software, and you are welcome to redistribute it'); console.log ('under certain conditions; type `show c\' for details.\n') if (process.argv.indexOf("--debug") == -1) { - log("Running AleeBot without --debug command line flag. Debug output disabled."); + console.log("Running AleeBot without --debug command line flag. Debug output disabled.\n"); } else { console.log('[!] Entering debug mode...') client.on('debug', function(info) { -- cgit v1.2.3