Enable inspector and debugger

This commit is contained in:
=
2020-09-14 06:53:35 -07:00
parent d871d9ad1f
commit 8018caab47
2 changed files with 2 additions and 1 deletions

View File

@@ -214,6 +214,7 @@ class OlxCrawler {
try { try {
const res = await fetch(url); const res = await fetch(url);
logDebug("Got category results for: ", url);
const body = await res.text(); const body = await res.text();
const $ = cheerio.load(body); const $ = cheerio.load(body);
let hrefs = []; let hrefs = [];

View File

@@ -5,7 +5,7 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"start": "node ./index.js", "start": "node --inspect ./index.js",
"start-mon": "nodemon ./index.js", "start-mon": "nodemon ./index.js",
"migrate": "cd app && npx sequelize db:migrate", "migrate": "cd app && npx sequelize db:migrate",
"seed": "cd app && npx sequelize db:seed:all", "seed": "cd app && npx sequelize db:seed:all",