Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make global variables available in the repl?

See original GitHub issue

Issue Description

Hi, is it possible to make global variables in a file run with janeway file.js available in the REPL, similar to what does?

And thanks for the awesome work!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

skeritcommented, Jul 1, 2018

@joelmukuthu Doing janeway --evaluate file.js will now do what you want 😃

You can also add it to your config file (see the readme) so it’ll do this by default.

joelmukuthucommented, Apr 1, 2018

Your suggestion sounds like it would work! I think janeway would be a cool tool for creating interactive demos, but in most cases one needs to set up the demo environment hence this feature request. Let me know if I can help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Global variable. - Replit
I am making a feedback form, and I have it set up so that in submission1.php, it will gather the variable from the...
Read more >
`global.variable` not working? - Replit
Hello! I am trying to make a variable that can be available to all files in the dir without having to mass the...
Read more >
Cannot access global variables in console after requiring local ...
Normally I can do this on - I run code, and then I can use that code in the console. If I...
Read more >
Easy way: create a global vari... - Replit
Easy way: create a global variable and change it whenever you need to: Downsides: It will reset ...
Read more >
Where do you create a global v... - Replit
Can someone explain global variables? ... how does global variables work i tried and it doesn't seem to work. 4 years ago ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found