Skip to main content

All Questions

0 votes
0 answers
49 views

Can set breakpoints in .js files in vscode only after started vite debugger?

Why I can only set valid breakpoints in .js files in vscode AFTER starting the vite (node.js) debugger? Not working: npx vite (starting the server) Set breakpoint in vscode Start Debugger with F5 New ...
PowerNow's user avatar
  • 393
1 vote
0 answers
47 views

Express middleware not receiving data from service function, instead data goes directly to client (Postman)

I'm encountering an issue with my Express application where data fetched by a service function is bypassing the middleware and going directly to the client (Postman). Here is my setup: I have a ...
Umakanth Pendyala's user avatar
0 votes
0 answers
58 views

Error: Route.post() requires a callback function but got a [object Undefined]...what

get this error when i try to run the server `Error: Route.post() requires a callback function but got a [object Undefined]` `i THINK this chunk of code is the cause of the error but i am not sure` ...
J mro's user avatar
  • 1
0 votes
2 answers
51 views

node js crashing, saying a variable is undefined, when it isnt

Here is my GET request handler, to render a page: app.get("/:band", async (req, res) => { const page = req.params.band; try { const result = await db.query("SELECT * FROM ...
user23771495's user avatar
0 votes
2 answers
1k views

No way to step into node_modules anymore?

Is it just me, or Chromium DevTools stopped to stop at breakpoints in node_modules (including /usr/lib/node_modules)? a.js: console.log('a.js'); require('./b'); b.js: debugger console.log('b.js'); ...
x-yuri's user avatar
  • 19.1k
0 votes
0 answers
38 views

Why does my Node.js application not stop when using --inspect?

I have the following Node.js application here: const express = require("express") const bodyParser = require("body-parser") const mysql = require("mysql2") const path = ...
FCBayernFan2012's user avatar
1 vote
1 answer
534 views

how to debug javascript files invoked from cypress test file

I'm running on Cypress version 12.14.0. I have my regular Cypress project structure. I have cypress.config.js and under e2e directory I have the test files such as test1.cy.js What I'm unable to ...
bla dla's user avatar
  • 35
0 votes
0 answers
28 views

Is JavaScript error catching possible without modifying the code?

In a JS application, how can you catch all the errors that are generated, handled and unhandled without changing the source code ? Or without going into the code and modifying each managed error. I ...
Bill's user avatar
  • 1
0 votes
0 answers
20 views

Can't connect my static javascript file to socket.io library in NodeJS and ExpressJS

I am creating an app using nodejs, expressjs and This is my index.js const express = require("express"); const app = express(); const path = require("path"); const router = require(...
ritik mittal's user avatar
1 vote
0 answers
1k views

JavaScript Node Segmentation fault

I'm currently working on a Windows 11 Laptop and Ubuntu 22LTS desktop PC. Only on PC the program suddenly interrupts. After some research I found out it's running in an 'Segmentation fault' - error, ...
MrGreenPepper's user avatar
-2 votes
1 answer
2k views

ReferenceError: document is not defined in vsCode

I'm trying to debug my javascript code and I've tried everything, I even uninstalled vscode, but I can never debug, does anyone know how to fix it? The following message is appearing: (remembering ...
Helton Oliveira's user avatar
3 votes
1 answer
4k views

Next.js, debugging server-side code with chrome devtools. Breakpoints are ignored and console output does not go to chrome devtools

I'm following this guide. https://nextjs.org/docs/advanced-features/debugging And I'm trying to use the chrome debugger to debug the server part of a next js application (without using VS Code). I ...
OceanExplorer's user avatar
0 votes
2 answers
72 views

I have function calling anther function to return string, but I get undefined. because of the read file implement first [duplicate]

I'm not that expert, but I can handle it: this calling the function checkTLS // params={ibmdev_tls: 'not imp',ibmqa_tls: 'not imp',ibmqa_ssl: 'not imp'} Object.keys(params).forEach( key => { ...
Hermione Granger's user avatar
0 votes
1 answer
63 views

When making hover function by 'onMouseEnter' and 'onMouseLeave' function, how can I apply 'onMouseLeave' function at first?

You may not understand the title, but I'll explain what the question is. I'm trying to make some buttons. the button is changed when it's hovered. The button originally selected does not change when ...
DgUZH's user avatar
  • 107
0 votes
0 answers
162 views

javascript node command line debugging

I'm trying to debug javascript code with node inspect on terminal I can step through, and set breakpoints, but can not inspect values For instance, I get an error when I try to print i below: $ npx ...
OrenIshShalom's user avatar

15 30 50 per page
1
2 3 4 5
23