diff options
| author | Alee <alee14498@gmail.com> | 2018-04-15 11:13:06 -0400 |
|---|---|---|
| committer | Alee <alee14498@gmail.com> | 2018-04-15 11:13:06 -0400 |
| commit | 9e6471908997015894b8f8fff27fc9f3d4440470 (patch) | |
| tree | 3aa1f54b00eee419a725b4dcad00c1801cdd5203 | |
| parent | 4cad93e6c3f03f08a525d76ce94927b3b05e35c9 (diff) | |
| download | AleeBot-9e6471908997015894b8f8fff27fc9f3d4440470.tar.gz AleeBot-9e6471908997015894b8f8fff27fc9f3d4440470.tar.bz2 AleeBot-9e6471908997015894b8f8fff27fc9f3d4440470.zip | |
More changes in debug mode
| -rw-r--r-- | .vscode/launch.json | 14 | ||||
| -rw-r--r-- | 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) {
|
