NodeJS debugging
NodeJS debugging
Hi,
i want to know how can i strat debugging a flow in vscode or better to say how can i debug one script flow in vscode
i set debug mode yes and port 9229 and by vscode in launch.json this setting i active the flow and press F5 for debugging, but occurred this error : could anyone tell me what should i do or clearly explain how to do it. there is not good information in documation
i want to know how can i strat debugging a flow in vscode or better to say how can i debug one script flow in vscode
i set debug mode yes and port 9229 and by vscode in launch.json this setting i active the flow and press F5 for debugging, but occurred this error : could anyone tell me what should i do or clearly explain how to do it. there is not good information in documation
-
- Member
- Posts: 21
- Joined: Wed Jul 20, 2016 12:03 pm
Re: NodeJS debugging
These message show-up when VsCode didn't get a return from switch.
There is three main cause :
- Switch flow element is not set-up in debug mode
- Switch flow is not running
- You already done a debug and did'nt restart your switch flow between.
But i agree on that, the documentation is a bit unclear for this process
There is three main cause :
- Switch flow element is not set-up in debug mode
- Switch flow is not running
- You already done a debug and did'nt restart your switch flow between.
But i agree on that, the documentation is a bit unclear for this process
Re: NodeJS debugging
Thank you for your responseThomasDeschamps wrote: ↑Thu Aug 20, 2020 3:10 pm These message show-up when VsCode didn't get a return from switch.
There is three main cause :
- Switch flow element is not set-up in debug mode
- Switch flow is not running
- You already done a debug and did'nt restart your switch flow between.
But i agree on that, the documentation is a bit unclear for this process
i have done everything and still i get the error
Re: NodeJS debugging
Is there any error in the messages?
Re: NodeJS debugging
Make sure you have the document/file in the folder proceeding the script befofe you start debugging
Last edited by Sunnyland on Fri Aug 21, 2020 7:08 am, edited 1 time in total.
Re: NodeJS debugging
Make sure you have the document / file in the folder proceeding the script before starting in debug mode.
and start the debugger in attach.
and start the debugger in attach.
- Attachments
-
- Untitled.png (3.2 KiB) Viewed 11381 times
Re: NodeJS debugging
Make sure you have the document / file in the folder proceeding the script before starting in debug mode.
and start the debugger in attach.
and start the debugger in attach.
Re: NodeJS debugging
Hi,
i have another problem and I get the error when I stop the flow manually through the task manager
this is an error " the debugging can be enabled for only one script at a time "
i have tried to change port but it didnt work too
anyone knows where is the problem ?
i have another problem and I get the error when I stop the flow manually through the task manager
this is an error " the debugging can be enabled for only one script at a time "
i have tried to change port but it didnt work too
anyone knows where is the problem ?
Re: NodeJS debugging
Yes I've had the same; if the node script itself breaks, i.e. the debugging session is terminated, Switch continues to wait for response and the Switch_Server process has to be terminated manually. After this the error you mentioned appears and the reason seems to be that Switch is still listening to a main.js debugging in some cache (check the path in the log message) ––> only way we've found around it is to do a Restart Switch Server from File menu before reactivating the flow. Luckily we have a develop server so we can do that quite freely when developing scripts, but of course it would be nice to have lighter solution...
Re: NodeJS debugging
Thanks
yes, i do it now but i thought that there is even easier solution for this