365 questions
0
votes
0
answers
39
views
Why does the input event of a number control fire twice when using a Breakpoint?
I have an input type=number control and am listening to its input event. The event is triggering as expected and my event handler is firing as expected as well. However, if and only if I place a ...
4
votes
1
answer
623
views
How to add breakpoints for custom events?
If I want to debug standard DOM events, the browser dev tools make it easy to have Event Listener Breakpoints.
But now I need to debug custom events that are created with CustomEvent("foobar-...
2
votes
0
answers
665
views
VS Code debugger says a variable is undefined, but the variable appears in console log
Try running this particular piece of javascript code in VS Code's debugger mode.
(async()=>{
let t = 1;
console.log(t);
for(let i =0 ; i<99999999; i++) {
continue;
}
debugger;
})();
...
0
votes
0
answers
60
views
Javascript reduce returns empty object in async function
I have an Angular app and I am getting the contents of a json file from Google Drive. The contents is an array of 1011 customers that I want to transform into an object. However the reduce function ...
6
votes
2
answers
3k
views
Correct setup for debugging NextJs app inside Neovim with dap
I've been trying to set up neovim and dap for Nexjs app for more then 5 month. So I'm here.
This is the .vscode/launch.json in project directory.
"version": "0.2.0",
"...
2
votes
0
answers
398
views
Debugging a NextJS/React application in Storybook through WebStorm
I have a NextJS app I'm working on developing. I'm currently trying out Storybook to develop the various components in isolation of each other.
If I run the app via npm run dev then WebStorm will ...
1
vote
2
answers
210
views
How to locate the js statement that jumps to another web page?
When I open some web pages, they may jump to another web page automatically after a while. For example, if you open https://list.jd.com/list.html?cat=670,677,688 it will jump to cfe.m.jd.com/..., then ...
0
votes
0
answers
316
views
How to stop JS debugger or page freeze during inspect element in browser?
I am trying to open developer tools on websites like theflixer dot tv but as soon as I open dev tools, the website freezes and gets stuck on debugger and then the whole browser gets frozen. I know ...
0
votes
1
answer
132
views
How to get events from an embedded JavaScript Rhino engine
I have a webapp project running on tomcat that uses an embedded Rhino engine to execute custom scripts uploaded by (power) users; from the execution point of view, everything is working as expected, ...
0
votes
0
answers
26
views
Does devtools from chrome work with methods?
I´m doing the tic tac toe exercise from the Odin Project (I´m a begginer with javascript, and programming in general). I have a question about how chrome´s devtools breakpoints work with functions ...
4
votes
2
answers
6k
views
Configuring nvim-dap for JavaScript and Python
I'm looking to set up nvim-dap and followed the instructions for implementing it with Python and JavaScript, which seem very straightforward, but I can't seem to get it working. Here are my plugins:
--...
2
votes
1
answer
2k
views
VSCode equivalent of Chrome's "Pretty Print" / "Format Code" functionality for debugging TypeScript/JavaScript code?
When debugging JavaScript code, you regularly encounter minified code. This code is hard to read for humans. To still "make sense" of the code while debugging, Chrome's debugger ships with a ...
0
votes
0
answers
142
views
How can I click on a submit button that is blocked by an 'onclick' submit handler's 'disabled' attribute on a website using Selenium?
fidelity login pageI used to be able to login to my fidelity account at https://nb.fidelity.com/public/nb/default/home and scrape certain data, but now I can't login via scripts anymore.
I am using ...
6
votes
2
answers
9k
views
Vite build.sourcemap hidden not loading in Chrome or Firefox
Migrating my react app from create-react-app to Vite and seeing some unexpected behavior with source maps. Vite docs regarding source maps are here. I was leaning toward using sourcemap: true until I ...
0
votes
1
answer
686
views
How can I disable skipFiles in VS Code's JavaScript debug terminal?
How can VS Code's JavaScript Debug Terminal be coerced into stepping into node's internal JavaScript files (Ex. the http module to step into the createServer function, for example)? There are many ...