366 questions
0
votes
0
answers
23
views
Attaching debugger to a running Node JS process inside a docker container
I normally use USR1 signal to run the node process in debug mode
kill -USR1 <pid>
but when the process is inside docker container - the node process by default listens on 127.0.0.1:9229 -> ...
0
votes
0
answers
34
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 ...
3
votes
1
answer
524
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
625
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
56
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
373
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
207
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
304
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
121
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
25
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
1k
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
132
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
8k
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
655
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 ...
12
votes
3
answers
2k
views
Enabling javascript debugger in VS 2022 freezes application
I have been searching for an answer for 2 days now so really hope someone can help.
When I try to debug my project the application freezes, nothing happens in the browser it just keeps loading and ...
0
votes
1
answer
912
views
Display of __proto__ vs [[Prototype]] in Chrome Developer Tools
I am learning Java Script and I see the examples that were published a few years ago show __proto__ in the chrome developer tool - console while explaining the prototypical inheritance concept.
When I ...
3
votes
1
answer
965
views
debugger not working on browser dev tools after updating angular 8 to 15 dev tools
I've updated angular from version 8 to 15 and debugger is not working on any browser dev tools Can anyone suggest what am I missing is somthing wrong with source-map?
Here is package.json
"...
0
votes
1
answer
835
views
Edge debugger not pausing on missing javascript function
Edge debugger (Dev Tools) not pausing on missing javascript functions.
The console shows the message, but does not pause:
Uncaught ReferenceError: ChangeInvoiceNbr is not defined at HTMLButtonElement....
0
votes
1
answer
1k
views
Can't use javascript debug terminal anymore
I've previously been able to use the debug terminal without any issue, but now when I try to open it (by clicking the little down arrow next to the new terminal plus symbol and clicking "...
0
votes
1
answer
251
views
VS Code JavaScript debug terminal has malware. How to remove it?
I just started experimenting with the .NET framework and I noticed that when I run:
dotnet list packagein the JavaScript Debug Terminal of VS Code I get all my packages as I should but they have ...
3
votes
0
answers
60
views
How to extract secrets from running node app via debugger
I'm trying to hack my own node app and extract secrets from it by attaching a debugger to the running process. It's a NestJS / Express app.
So there is a compiled main.ts file of the same form as here ...
1
vote
1
answer
722
views
console.log outputs a Value different when using debugger
I have been making a sudoku solver in JavaScript. There is a very weird behaviour.
Here is the code and context:
solveSudoku = ()=>{
let sectionsCopy_ =sectionsCopy
for(let sect =0; ...
1
vote
1
answer
2k
views
JavaScript debug breakpoints not working in IntellijIDEA
I have a Rails and React app that I'm debugging in IntelliJIdea 2022.2.3. I'm using Vite and not webpack.
I've set breakpoints on both ends of the app, but only the Ruby breakpoints are hitting.
Both ...
4
votes
1
answer
1k
views
How to run eslint so that I can attach a debugger?
I am trying to debug a eslint rule through console.log but it's not the most efficient way to debug. I am running eslint through command line.
How can I run eslint so that I can attach a debugger (...
2
votes
2
answers
530
views
When in the Chrome Debugger, is there anyway to reference data or functions inside an anonymous function block?
I'm trying to debug something live on a customer website and my code is all inside an anonymous function block. I don't know if there's anyway to reach that code to execute functions or look at ...
1
vote
0
answers
44
views
When debugging Chrome Javascript, the Javascript loaded by specifying a path cannot enter the breakpoint
If you load javascript by specifying a path, there is a problem that you cannot enter even if you specify a breakpoint.
Intermittently enters breakpoints, to be exact. In the case of the code below, ...
7
votes
3
answers
12k
views
Error Debugging in VS Code: Cannot connect to the target at localhost:3000: could not find any debuggable target
I have an application with React on frontend and .Net Core on backend and i am trying to debug my react frontend, without extensions and attaching to the process, but i am getting the message error ...
2
votes
0
answers
1k
views
What's the difference between Step, Step into, and Step over in in a debugger? [duplicate]
I think I have an idea of what the difference between Step Into and Step Over is.
The confusion comes when comparing Step and Step Into. I couldn't find anything online about difference between both.
...
0
votes
1
answer
1k
views
.NET Core Web Application with AngularJS - JS Debug not working for JS files in VS Code
VS Code v1.64.2
.NET Core v3.1
AngularJS v1.8.2
I am trying to use Visual Studio Code for debugging .NET Core web application which is using AngularJS. I am able to debug breakpoints placed inside ....
1
vote
1
answer
3k
views
How do I use the `node inspect` debugger on an application that uses standard input?
I'm trying to track down the source of an error in a Node application that doesn't come with a stack trace.
The node inspect debugger supports a breakOnException command that I think will help me.
But ...
2
votes
0
answers
100
views
Chrome Debugger Not Displaying Variable Values
Is there any reason or something I am missing that Chrome Debugger Tool is not displaying variable and object values in the source files? Please see screenshot below:
2
votes
1
answer
630
views
How to close Automatic Debugger in chrome browser?
[When debugging in chrome, the scripts are always paused in the debugger even if there are no break points set, and if the the pause is un-paused, it again pauses itself.][1]
0
votes
1
answer
58
views
VSCode v1.62.2 on M1 11.6 not starting debugger on pre-saved workspaces
After November's Recovery Update 2, VSCode fails to start debugging on pre-saved workspaces.
It is MacOS specific. Don't know if it is M1 specific.
If I open the workspace's folders one by one and ...
1
vote
0
answers
188
views
Debugger opens an unknown 'SOURCE' file
I'm trying to debug a small program in javascript, when I open the debugger section in the console, I set a breakpoint, and refresh the page to start debugging, until now everything is working just ...
0
votes
1
answer
279
views
Javascript debugger in Atom IDE
I have used atom for Javascript. I install Script package. I also install debugger package using the following command
apm install atom-ide-debugger-node
However, in Atom IDE, I could not find any ...
1
vote
1
answer
4k
views
How to Catch "TypeError: Cannot read properties of undefined (reading '0')" with custom error message?
How to catch the error for property that does not exist?
Example:
const arr = [
{
neighbours: ['AFG', 'CNG'],
},
];
Now when i try to access a property which may or may not exist, in case, it ...
0
votes
1
answer
1k
views
How to run two pwa-msedge debuggers in vscode at the same time?
I have two frontend applications in my applications that need to be run in debugger mode, at the same time.
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions ...
1
vote
1
answer
13k
views
How to close the pop up message box using Playwright?
I just learned Playwright API and I'm trying to write an automation test. The test is about logging into the bank account and do something with it. All my scripts worked until I've entered into the ...
0
votes
1
answer
162
views
Unable to debug Javascript in browser
I am trying to debug through some JS code in firefox. When I click on a certain file (CometdWorkerJs.js) in console, that file does not open in Debugger-Sources tab, but rather opens as raw text file. ...
1
vote
0
answers
301
views
Live edit failed in google chrome for JavaScript
Live editing is failing in chrome debugger for JavaScript with chrome version 92.+. It was working fine on 91.+ version. Any guess?
1
vote
1
answer
2k
views
How to debug Webdriverio cucumber framework in VScode
I am trying to debug Cucumber scenarios in Visual Studio code and below is launch.json config. Execution is not stopping at the breakpoint. I am not sure whether the generic feature path I have ...
6
votes
1
answer
490
views
Why is chrome stepping into ignored files?
I'm trying to step through a single file, but the debugger keeps stepping through miscellaneous/third party js scripts. I have them added in my ignore list, it even says "This script is on the ...
0
votes
0
answers
317
views
How to track function/call that changed the value of an object property in JS (for debugging purposes)
I've been working on extending and improving a Mario clone project in JS (Link to the original project: http://www.garrettjohnson.net/mario/) (Link to source files for original: https://drive.google....
0
votes
1
answer
507
views
Not able to attach debugger to the outlook add-in code for desktop outlook app
Tried to attach the debugger to outlook add-in code generated by yo office generator not able to do so, below is the error and the launch configuration
1
vote
1
answer
846
views
Intellij Debugger Console for Javascript imported objects or functions
I have a Jest file that I am debugging in Intellij.
import { screen, waitFor } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
describe('<SamplePage />', (...
2
votes
2
answers
1k
views
Chrome devtools inspector showing blank white screen while debugging Tizen Web application
The problem described here
Chrome devtools inspector showing blank white screen while debugging with Samsung TV Tizen Web application
still exists (or exists again).
The solutions from that question ...
8
votes
2
answers
684
views
How to extend console.log which can accept args without using additional ()?
I've been working on extending console.log to make a colorful one that keeps the stack trace as to where it has been called. I've tried some solutions, but finally reach this point:
const colorizedLog ...
0
votes
0
answers
208
views
Issue configuring PhpStorm for JavaScript debugging
I am trying to run JavaScript debugging from PhpStorm.
When I specify google-chrome as path in the browsers configuration:
I get the following error:
Cannot run program "google-chrome": ...