Похожие чаты

Hi How can i access variables when debugging node js?

10 ответов

13 просмотров

Access variable.... You want to see what value it has console log it

Void- Автор вопроса
Varun Gandhi
Access variable.... You want to see what value it ...

I can't access it or log it, the variable is not defined as you can see

Void- Автор вопроса

🆙

Void
🆙

Because you defined the variable inside function so you can log or access it only in the function Read about " Variable scopes "

You never call the func. And don't use var

Void- Автор вопроса
سجاد سلام .🍋
Because you defined the variable inside function s...

But i defined the debugger inside the function When i debug like that in the browser i can access local variables

Void- Автор вопроса
Thomas
yeah it should work

Don't forget its nodejs

Void
Don't forget its nodejs

What node version are you using?

Похожие вопросы

Обсуждают сегодня

Есть какой-нибудь для Delphi/FPC T*Compression(Decompression)Stream на базе LZ4/Zstd/любой другой быстрый(и хорошо сжимающий) алгоритм А ещё лучше в pure pascal А ещё лучше од...
notme
32
А чем вам питонисты не угодили?😂
.
79
Hey guys, did you see the new announcement about $Fun? 🔥
Filip Murphy
55
Язык Си можно выучить за день? По книжке ANSI C на 230 страниц
Vincent Vegan
29
Привет, запускаю werf в dind в k8s, получаю ошибку на этапе build/beforeSetup: /.werf/stapel/embedded/bin/bash: /.werf/scripts/5898bdfe5214357d3706b879cc8d3d78460fb379607cbd...
florius0
7
Hello. Could you please help me with finding all coordinates within a radius using a spatial index, given that I have a table with coordinates? SET @lng = 37.57925; SET @lat ...
Rinchin G
4
Всех приветствую. Направьте меня в нужное русло. Постепенно переписываю проект с delphi на lazarus. Приложение - обычный windows/linux клиент для бд firebird. Тут все хорошо. ...
Mishutka
8
Привет всем, подскажите, есть сайт на ево 1.4, надо сделать его мультиязычным, структура документов одинаковой останется, чисто тексты разные, свои тв для каждого языка, поддо...
Oleg
7
Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
75
Why ftm dumping??
Sabah Shabu
8
Карта сайта