I
I
Ivan Panteleev2015-07-19 10:40:30
JavaScript
Ivan Panteleev, 2015-07-19 10:40:30

Debugging node.JS in a virtual machine, how?

The NodeJS project is in a virtual machine. I start a node process with the flag --debug. Then he telnet localhost 5858happily informs me that the debugger is working here.
But when executing the command on the local machine, telnet <vm_ip_address> 5858I get connection refused.
Attempts to forward the port through the configuration VagrantfileBy adding the line

config.vm.network :forwarded_port, guest: 5858, host: 5858
led to nothing. How to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Solovyov, 2015-07-19
@suenot

Try

config.vm.network "forwarded_port", guest: 5858, host: 5858

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question