Skip to main content

All Questions

4 votes
2 answers
164 views

Is there a way to stop mixing console.group()s when script use async functions?

When I debug a script that contains asynchronous functions and I want to have the statements grouped into a console group. The groups get mixed up and the whole debugging becomes confusing. Is there ...
iiic's user avatar
  • 1,372
0 votes
2 answers
141 views

Why console.log on chrome console display undefined and does not print out value? What to do if I want to list a value?

Try this in chrome console: var x =2; console.log(x); Why console.log() on chrome console display undefined and does not print out value? Is there anything wrong in my setting? What to do if ...
DriveCarefully's user avatar
0 votes
0 answers
8 views

Showing calling file+line in console.log of a function [duplicate]

When using console.log("test"), the console will not only show "test" but also the file and line where that code was called from. How can I accomplish the same effect for my own ...
Markstar's user avatar
  • 873
0 votes
1 answer
1k views

Find the relevant line of error in console in React

When I open the devtools to find out where the error occured in browser, then I typically see something like this: Cannot read properties of null .... app.js:123123 at MyComponent It is ok that ...
John's user avatar
  • 3
0 votes
0 answers
76 views

Why does Chrome Devtools console do not show variables from my local Scope?

I have a problem with my console in Chrome devtool, currently when I trying debug something don't see any of my local scope variables. I'm sure few days ago I didn't have this problem and I saw this. ...
kwlSca's user avatar
  • 7
0 votes
1 answer
45 views

run JavaScript file in crome console without using html

i want to run my JavaScript files directly to separated console or chrome divtools without put it in script tags and using html, just excite it directly from my vs code i looked for many ways to do ...
Ahmad's user avatar
  • 1
-1 votes
1 answer
134 views

Two time console show in react

Dobule console show problem in react any solution for this problem
Ram's user avatar
  • 1
1 vote
0 answers
33 views

chrome debug log value different from actual value inside variable

I am passing one variable with string value to function xyz which is failing, but when i am copying same variable values from browser console and passing directly to same xyz function, it started ...
rampatel's user avatar
  • 541
0 votes
0 answers
172 views

Debugging a React app from console as if the console was the app itself

When I used to program with python I could run a python app and then execute methods and access variables of the app from within terminal. This was a great way to test things around. Working on my JS ...
elMeroMero's user avatar
0 votes
1 answer
218 views

Use All of App's Imports in Javascript Console?

When I'm in debug console for JS (during debug of a given source file), and I try to use a module that was imported in my source file, I get the following error: Uncaught ReferenceError: myModule is ...
joshp's user avatar
  • 836
0 votes
0 answers
131 views

Vue,js has $refs undefined in console but works in $nextTick. Why console shows the values but returns undefined?

I'm a bit confused about $refs behavior in my code. console.log("> Value "+e.code); console.log(them.$refs) val = parseInt(them.$refs[e.code][0].value); The first line ...
Uncoke's user avatar
  • 1,902
1 vote
3 answers
1k views

console.dir - how to show what object it applies to / label it?

Given a declaration like myobj = {a:1, b:2}; I can write console.dir(myobj). This results in { a: 1, b: 2 } But say I want to remind myself, in a complex debugging session, what the console.dir ...
JL Peyret's user avatar
  • 12.1k
1 vote
1 answer
564 views

Proxy all console outputs [logs, error, warning, etc] into HTML

I'm looking for a solution for print the equivalent of what I see in the console into a div element in the HTML. I'm developing with Web technologies into a TV so no Browser tools provided. I've found ...
user avatar
0 votes
0 answers
31 views

How to read and fix console messages for *uninitialized* variables [duplicate]

I am developing an application that reads a csv file and generates a report. It is working properly. However, when I run my application in Eclipse IDE, I see messages on the console that I am not sure ...
Maple's user avatar
  • 183
4 votes
1 answer
2k views

What the instance init in Google Chrome console mean and how I can access it?

What the instance init in browser console mean ? If anyone has any idea on how to deal with this problem, I would really appreciate it. Here is an attachment of the code that I have while I was doing ...
Oris Sin's user avatar
  • 1,238

15 30 50 per page
1
2 3 4 5
7